Skip to content

Commit 88219aa

Browse files
authored
fix(tail): increase retry delay and sleep interval for flaky test (#11278)
Increases the retry delay from 100ms to 400ms and sleep interval from 0.1s to 0.2s in test_retry9 to address flaky test behavior caused by timing sensitivity.
1 parent 36b5e59 commit 88219aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/by-util/test_tail.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,14 +1721,14 @@ fn test_retry9() {
17211721
);
17221722
let expected_stdout = "foo\nbar\nfoo\nbar\n";
17231723

1724-
let delay = 100;
1724+
let delay = 400;
17251725

17261726
at.mkdir(parent_dir);
17271727
at.truncate(user_path, "foo\n");
17281728
let mut p = ts
17291729
.ucmd()
17301730
.arg("-F")
1731-
.arg("-s.1")
1731+
.arg("-s.2")
17321732
.arg("--max-unchanged-stats=1")
17331733
.arg(user_path)
17341734
.run_no_wait();

0 commit comments

Comments
 (0)