Skip to content

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

fix(print): pass the lpoptions limit outside the stand-in command in the CUPS test

mtlcl410e3847ba07691
diff --git a/crates/print/src/tests.rs b/crates/print/src/tests.rs
index b11f46783..bb55ac397 100644
--- a/crates/print/src/tests.rs
+++ b/crates/print/src/tests.rs
@@ -582,7 +582,7 @@ mod cups_options {
(boundary_queue.as_str(), "Tray2", "Tray2"),
(boundary_instance.as_str(), "Tray2", "Tray2"),
] {
- let options = spool::printer_options_via_within(destination, &dir, command(&dir, &format!("InputSlot/Paper tray: *{current}"), LIMIT));
+ let options = spool::printer_options_via_within(destination, &dir, command(&dir, &format!("InputSlot/Paper tray: *{current}")), LIMIT);
assert_eq!(options.len(), 1, "{destination}: the queue's PPD must be read");
assert_eq!(options[0].default, expected, "{destination}: only valid instance choices override the PPD default");
assert_eq!(options[0].choices, [("Auto".into(), "Automatic".into()), ("Tray2".into(), "Tray 2".into())]);