Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

Integration: #3670's fan-out test allows for a loaded machine

aiongg91b6f7f1726e
diff --git a/crates/redact/src/tests.rs b/crates/redact/src/tests.rs
index d89b3c608..9ffb07e6f 100644
--- a/crates/redact/src/tests.rs
+++ b/crates/redact/src/tests.rs
@@ -385,7 +385,8 @@ fn a_form_that_fans_out_or_loops_is_bounded_by_the_page_budget() {
mark(&mut doc, 0, &[[5.0, 275.0, 60.0, 295.0]], "");
let result = apply(&mut doc, None);
let took = start.elapsed();
- assert!(took < std::time::Duration::from_secs(20), "looping {looping}: the walk took {took:?}");
+ // An unbounded walk would never end; the limit leaves room for a loaded test machine.
+ assert!(took < std::time::Duration::from_secs(120), "looping {looping}: the walk took {took:?}");
// The page's form budget stops the walk, and Apply refuses the page rather than
// removing forms it could not read.
assert!(result.is_err(), "looping {looping}: the page past its form budget is refused");