Skip to content

Commit 019a3cc

Browse files
authored
Improve testWaitFor speed and flakiness (#100)
1 parent febeaba commit 019a3cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/AtomsTests/Context/AtomTestContextTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ final class AtomTestContextTests: XCTestCase {
5959

6060
context.watch(atom)
6161

62-
for i in 0..<3 {
62+
for i in 1...3 {
6363
Task {
64-
try? await Task.sleep(seconds: Double(i) / 10)
64+
try? await Task.sleep(seconds: Double(i) / 100)
6565
context[atom] += 1
6666
}
6767
}

0 commit comments

Comments
 (0)