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.
This commit is contained in:
dotCooCoo committed 2026-11-20 22:18:48 -08:00
1 parent 9fff48d88f
commit ba0b3d2754
1 file changed
+2 -1
+2 -1
View File
@@ -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
}