We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b4fbd9 commit 06a473fCopy full SHA for 06a473f
1 file changed
tests/by-util/test_fold.rs
@@ -894,11 +894,14 @@ fn test_bytewise_carriage_return_is_not_word_boundary() {
894
fn test_bytewise_read_from_pseudo_device() {
895
let mut child = new_ucmd!().arg("-b").arg("/dev/zero").run_no_wait();
896
897
- let timeout = std::time::Duration::from_millis(100);
898
- std::thread::sleep(timeout);
899
- child.close_stdin();
900
- assert!(child.stdout_all().contains("\x00\x0a"));
901
- assert!(child.stderr_all().is_empty());
+ child.make_assertion_with_delay(100).is_alive();
+
+ child
+ .kill()
+ .make_assertion()
902
+ .with_all_output()
903
+ .stdout_contains_bytes(b"\x00\x0a")
904
+ .no_stderr();
905
}
906
907
#[test]
0 commit comments