From 1eea517d3748e0190c8f05483e5eed35d6394e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=E1=BA=A3=20th=E1=BA=BF=20gi=E1=BB=9Bi=20l=C3=A0=20Rust?= <90588855+naoNao89@users.noreply.github.com> Date: Thu, 1 Jan 2026 02:20:50 +0700 Subject: [PATCH] test(more): Fix test_from_line_option race condition by increasing PTY delay (#9629) * test(more): Fix test_from_line_option race condition by increasing PTY delay Increased the delay in run_more_with_pty() from 100ms to 500ms to allow more time to fully render output before the test reads from the PTY. The test was failing because it was reading too early, before more could initialize the terminal and render the file content. The -F flag itself works correctly. * test_more: decrease the delay --------- Co-authored-by: Sylvestre Ledru --- tests/by-util/test_more.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/by-util/test_more.rs b/tests/by-util/test_more.rs index 2bf130a18..b5256af61 100644 --- a/tests/by-util/test_more.rs +++ b/tests/by-util/test_more.rs @@ -35,7 +35,7 @@ fn run_more_with_pty( .arg(file) .run_no_wait(); - child.delay(100); + child.delay(200); let mut output = vec![0u8; 1024]; let n = read(&controller, &mut output).unwrap(); let output_str = String::from_utf8_lossy(&output[..n]).to_string();