Skip to content

Commit e15fd89

Browse files
naoNao89sylvestre
authored andcommitted
test(more): Fix test_from_line_option race condition by increasing PTY delay (uutils#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 <sylvestre@debian.org>
1 parent d9d9a0e commit e15fd89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/by-util/test_more.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn run_more_with_pty(
3535
.arg(file)
3636
.run_no_wait();
3737

38-
child.delay(100);
38+
child.delay(200);
3939
let mut output = vec![0u8; 1024];
4040
let n = read(&controller, &mut output).unwrap();
4141
let output_str = String::from_utf8_lossy(&output[..n]).to_string();

0 commit comments

Comments
 (0)