Skip to content

Commit 3836401

Browse files
authored
Tests: adjust slack for concurrency tests (#5546)
The Windows time-slice is in units of 10ms. This along with the high contention can cause the concurrency tests to be flakey. Increase the timeout some to enable more machines to pass.
1 parent a1af118 commit 3836401

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/BasicsTests/ConcurrencyHelpersTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ final class ConcurrencyHelpersTest: XCTestCase {
4242
}
4343
}
4444

45-
switch sync.wait(timeout: .now() + 1) {
45+
switch sync.wait(timeout: .now() + .seconds(2)) {
4646
case .timedOut:
4747
XCTFail("timeout")
4848
case .success:
@@ -72,7 +72,7 @@ final class ConcurrencyHelpersTest: XCTestCase {
7272
}
7373
}
7474

75-
switch sync.wait(timeout: .now() + 1) {
75+
switch sync.wait(timeout: .now() + .seconds(2)) {
7676
case .timedOut:
7777
XCTFail("timeout")
7878
case .success:
@@ -109,7 +109,7 @@ final class ConcurrencyHelpersTest: XCTestCase {
109109
}
110110
}
111111

112-
switch sync.wait(timeout: .now() + 1) {
112+
switch sync.wait(timeout: .now() + .seconds(2)) {
113113
case .timedOut:
114114
XCTFail("timeout")
115115
case .success:

0 commit comments

Comments
 (0)