Export As trial reads the registry through install::command_specs, so it holds in a process of its own

This commit is contained in:
aiongg committed 2026-11-21 05:08:14 +00:00
1 parent f454882458
commit 0cc267d2db
1 file changed
+1 -1
@@ -963,7 +963,7 @@ fn decontamination_alpha_keeps_missing_source_alpha_only_inside_bounds() {
#[test]
fn layer_export_as_names_every_resample_method_in_the_presets_order() {
let spec = crate::registry::command_specs().iter().find(|c| c.id == "layer.exportAs").unwrap();
let spec = crate::install::command_specs().iter().find(|c| c.id == "layer.exportAs").unwrap();
let keys: Vec<&str> = crate::export_preset_cmds::RESAMPLE.iter().map(|(key, _)| *key).collect();
assert!(spec.params.contains(&format!("\"resample\":\"{}\"", keys.join("|"))), "{}", spec.params);
}