From ba0b3d2754440ac062ff051364fd97f6035ff7ae Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Fri, 20 Nov 2026 22:18:48 -0800 Subject: [PATCH] Tests: the inline refresh test's sessions share one created date refreshing_only_changed_trees_matches_the_full_pass compares the documents of two sessions. file.new stamps File Info's created date with the current time, so sessions made in different seconds differed in metadata.created and the test failed. The file's session() helper now passes created: 0. --- crates/engine/src/tests/inline.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/tests/inline.rs b/crates/engine/src/tests/inline.rs index 37b72efa77..967276aa5f 100644 --- a/crates/engine/src/tests/inline.rs +++ b/crates/engine/src/tests/inline.rs @@ -13,7 +13,8 @@ use crate::*; fn session() -> Session { let mut s = Session::new(); - s.execute("file.new", &json!({"width": 800, "height": 600})).unwrap(); + // A fixed created date: two sessions made in different seconds would otherwise differ in it. + s.execute("file.new", &json!({"width": 800, "height": 600, "created": 0})).unwrap(); s }