Skip to content

Commit d946dce

Browse files
authored
* mac: increase tail test delays to fix intermittent failure
1 parent acd6f59 commit d946dce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/by-util/test_tail.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ const FOLLOW_NAME_SHORT_EXP: &str = "follow_name_short.expected";
7676
#[allow(dead_code)]
7777
const FOLLOW_NAME_EXP: &str = "follow_name.expected";
7878

79+
#[cfg(target_vendor = "apple")]
80+
const DEFAULT_SLEEP_INTERVAL_MILLIS: u64 = 1500;
81+
#[cfg(not(target_vendor = "apple"))]
7982
const DEFAULT_SLEEP_INTERVAL_MILLIS: u64 = 1000;
8083

8184
// The binary integer "10000000" is *not* a valid UTF-8 encoding
@@ -1419,6 +1422,9 @@ fn test_retry6() {
14191422
.arg("existing")
14201423
.run_no_wait();
14211424

1425+
#[cfg(target_vendor = "apple")]
1426+
let delay = 1500;
1427+
#[cfg(not(target_vendor = "apple"))]
14221428
let delay = 1000;
14231429
p.make_assertion_with_delay(delay).is_alive();
14241430

0 commit comments

Comments
 (0)