mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-14 06:42:20 +00:00
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:
1 file changed
+2
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user