From ae732c3a90bc05aa3b567b591ffb46362744dce8 Mon Sep 17 00:00:00 2001 From: aiongg <67543387+aiongg@users.noreply.github.com> Date: Sun, 25 Oct 2026 23:20:52 -0400 Subject: [PATCH] Pin the export time in the page-list export test (#1850) --- crates/engine/src/cmd/export.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/cmd/export.rs b/crates/engine/src/cmd/export.rs index 8de9ec1be..2dad2d820 100644 --- a/crates/engine/src/cmd/export.rs +++ b/crates/engine/src/cmd/export.rs @@ -1912,8 +1912,9 @@ mod page_list_tests { } // The two forms now agree byte for byte, and the pages come out in the document's order // whichever order the list names them in (which is how the export already behaved). + // A fixed creation time: exports a second apart would differ in their dates. let mut file = |pages: Value| { - let r = s.execute("file.exportPdf", &json!({"pages": pages})).unwrap(); + let r = s.execute("file.exportPdf", &json!({"pages": pages, "created": 0})).unwrap(); r["base64"].as_str().unwrap_or_default().to_string() }; assert_eq!(file(json!([4, 1])), file(json!("4,1")), "the array and the string agree");