diff --git a/crates/locallibrary/tests/it/plugins.rs b/crates/locallibrary/tests/it/plugins.rs index 9a2dc6461..023a2084c 100644 --- a/crates/locallibrary/tests/it/plugins.rs +++ b/crates/locallibrary/tests/it/plugins.rs @@ -196,9 +196,10 @@ impl Fixture { } /// The echo plugin, its exporter declaring the test plugin's own options: `outside`, a file - /// it says it writes in place of the export, and `extra`, one it writes besides. + /// it says it writes in place of the export, `extra`, one it writes besides, and `sizes`, the + /// sizes of the files it says it writes. fn exporting() -> Fixture { - let options = "options = { type = \"object\", properties = { extra = { type = \"string\" }, outside = { type = \"string\" } } }"; + let options = "options = { type = \"object\", properties = { extra = { type = \"string\" }, outside = { type = \"string\" }, sizes = { type = \"array\", items = { type = \"integer\" } } } }"; let manifest = ECHO.replace("extension = \"m3u\"\n", &format!("extension = \"m3u\"\n{options}\n")); assert_ne!(manifest, ECHO); Fixture::new(|dir| vec![spec(dir, &manifest, &[])], Options::default()) diff --git a/crates/locallibrary/tests/it/plugins/exports.rs b/crates/locallibrary/tests/it/plugins/exports.rs index a2a7cb171..22d090ce4 100644 --- a/crates/locallibrary/tests/it/plugins/exports.rs +++ b/crates/locallibrary/tests/it/plugins/exports.rs @@ -197,7 +197,7 @@ fn an_export_writes_out_only_what_its_exporter_says(tc: hegel::TestCase) { #[hegel::test(test_cases = 20, suppress_health_check = [hegel::HealthCheck::TooSlow])] fn an_exports_sizes_that_overflow_are_refused(tc: hegel::TestCase) { use hegel::generators as gs; - let f = Fixture::echo(); + let f = Fixture::exporting(); let size = hegel::one_of!(gs::integers::().min_value(u64::MAX - 1000), gs::integers::().max_value(1000)); let sizes: Vec = tc.draw(gs::vecs(size).min_size(1).max_size(4)); let out = f._dir.path().join("out");