Skip to content

Commit e652c1c

Browse files
committed
Add more detail in the test_infinite_output_command test
1 parent a732d93 commit e652c1c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,9 +1207,12 @@ fn test_infinite_output_command() {
12071207
result.duration >= max_timeout,
12081208
"Duration should be >= max_timeout"
12091209
);
1210+
let buffer = Duration::from_millis(750);
1211+
let diff = result.duration - max_timeout;
12101212
assert!(
1211-
result.duration < max_timeout + Duration::from_millis(750),
1212-
"Duration should allow a small buffer for process group kill and reaping"
1213+
result.duration < max_timeout + buffer,
1214+
"Duration should allow a small buffer for process group kill and reaping, duration = {:?}, max_timeout = {:?}, buffer was {:?}, difference: {:?}",
1215+
result.duration, max_timeout, buffer, diff
12131216
);
12141217
});
12151218
}

0 commit comments

Comments
 (0)