Skip to content

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

Integration: #2647 the lpoptions deadline test passes the language

aiongg7fbac38d7619
diff --git a/crates/print/src/tests.rs b/crates/print/src/tests.rs
index ddfb888b5..9bfba9c9e 100644
--- a/crates/print/src/tests.rs
+++ b/crates/print/src/tests.rs
@@ -528,7 +528,7 @@ mod cups_options {
)
.unwrap();
let started = std::time::Instant::now();
- let options = spool::printer_options_via_within("Office", &dir, command(&dir, "HANG"), std::time::Duration::from_millis(500));
+ let options = spool::printer_options_via_within("Office", &dir, command(&dir, "HANG"), std::time::Duration::from_millis(500), "en");
assert!(started.elapsed() < std::time::Duration::from_secs(20), "given up at the deadline, not when the command does");
assert_eq!(options.len(), 1, "the PPD is still read");
assert_eq!(options[0].default, "Auto", "the PPD default stands when the queue does not answer");