From 2f0533cf28d66a56f151e6a337d2ef395d4c408f Mon Sep 17 00:00:00 2001 From: Simon Hull <5488089+simonhull@users.noreply.github.com> Date: Thu, 5 Nov 2026 08:07:53 -0600 Subject: [PATCH] Eval: give the clamping test a locked cache --- crates/eval/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/eval/src/lib.rs b/crates/eval/src/lib.rs index 89742c6..3292dbc 100644 --- a/crates/eval/src/lib.rs +++ b/crates/eval/src/lib.rs @@ -602,8 +602,8 @@ mod tests { let blur = p.graphs[0].add_node("anisotropic_blur", [150.0, 100.0]); p.graphs[0].connect(noise, "output", blur, "input").unwrap(); p.graphs[0].node_mut(blur).unwrap().params.insert("intensity".into(), Value::Float(1e30)); - let mut cache = Cache::default(); - let c = cook(&p, 0, &Options::new(&no_res), &mut cache); + let cache = Mutex::new(Cache::default()); + let c = cook(&p, 0, &Options::new(&no_res), &cache); assert!(c.nodes[&blur].error.is_none(), "{:?}", c.nodes[&blur].error); assert_eq!(c.image(blur, 0).map(|i| (i.w, i.h)), Some((64, 64))); }