Merge pull request #7073 from mtlcl410/fix/test-moddate-second-boundary

fix(tests): saves compared byte for byte don't fail when the clock crosses a second between them
This commit is contained in:
FredApps authored and GitHub committed 2026-11-13 10:37:57 +01:00
commit 623c53f887
1 file changed
+2 -1
+2 -1
View File
@@ -14227,7 +14227,8 @@ fn reset_order_session(reset: &str) -> (Session, DocId) {
})
.unwrap();
let bytes = Arc::new(pdfcraft_cos::write_full(&cos, &Default::default()).unwrap());
let mut s = Session::new();
// Callers compare two saves byte for byte, and each save stamps `/ModDate`: pin the clock.
let mut s = Session::new().with_clock(|| 1_700_000_000);
s.set_javascript(false);
let id = s.open("reset-order.pdf", None, bytes, None).unwrap();
s.apply(