From 2fb48bd77d0ebd8caccf242630d2b1fd70661cf3 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Fri, 20 Nov 2026 04:00:20 +0700 Subject: [PATCH] Tests: the inline refresh test holds the fonts lock, so a font another test adds can't change one pass's type --- crates/engine/src/tests/inline.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/engine/src/tests/inline.rs b/crates/engine/src/tests/inline.rs index 1d68881b4d..37b72efa77 100644 --- a/crates/engine/src/tests/inline.rs +++ b/crates/engine/src/tests/inline.rs @@ -579,6 +579,9 @@ fn same_as_full_pass(full: &mut Session, fast: &mut Session, step: &dyn Fn(&mut /// natural size or anything else a symbol is measured with checks them all. #[test] fn refreshing_only_changed_trees_matches_the_full_pass() { + // Both sessions lay out type, and the test rescans the fonts: a font another test adds between + // the full pass and the fast one would change how the type resolves in only one of them. + let _fonts = crate::adding_fonts(); let setup = |s: &mut Session| { circle_symbol(s, "Tap", 10.0); circle_symbol(s, "Dot", 6.0);