Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Feb 22, 2024
1 parent 3c11a31 commit facd5fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/VergeTests/StoreReaderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ final class StoreReaderTests: XCTestCase {

XCTAssertEqual(count, 1)

try await Task.sleep(nanoseconds: 5_000_000)
try await Task.sleep(nanoseconds: 1_000_000_000)

store.commit {
$0.count_1 += 1
}

try await Task.sleep(nanoseconds: 5_000_000)
try await Task.sleep(nanoseconds: 1_000_000_000)

XCTAssertEqual(count, 3)

Expand All @@ -109,7 +109,7 @@ final class StoreReaderTests: XCTestCase {
$0.count_2 += 1
}

try await Task.sleep(nanoseconds: 5_000_000)
try await Task.sleep(nanoseconds: 1_000_000_000)


// not change because count_2 never read anyone.
Expand All @@ -119,7 +119,7 @@ final class StoreReaderTests: XCTestCase {
$0.count_2 += 1
}

try await Task.sleep(nanoseconds: 5_000_000)
try await Task.sleep(nanoseconds: 1_000_000_000)

// not change because count_2 never read anyone.
XCTAssertEqual(count, 3)
Expand Down

0 comments on commit facd5fe

Please sign in to comment.