Skip to content

Commit

Permalink
Improve testWaitFor speed and flakiness (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasberik authored Apr 5, 2024
1 parent febeaba commit 019a3cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/AtomsTests/Context/AtomTestContextTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ final class AtomTestContextTests: XCTestCase {

context.watch(atom)

for i in 0..<3 {
for i in 1...3 {
Task {
try? await Task.sleep(seconds: Double(i) / 10)
try? await Task.sleep(seconds: Double(i) / 100)
context[atom] += 1
}
}
Expand Down

0 comments on commit 019a3cc

Please sign in to comment.