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 fd98e2c commit 1c0379b
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Tests/VergeTests/StoreReaderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,30 +52,30 @@ final class StoreReaderTests: XCTestCase {

XCTAssertEqual(count, 1)

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

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

try await Task.sleep(nanoseconds: 1)
XCTAssertEqual(count, 2)
try await Task.sleep(nanoseconds: 5_000_000)

XCTAssertEqual(count, 3)

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

try await Task.sleep(nanoseconds: 1)
XCTAssertEqual(count, 3)
try await Task.sleep(nanoseconds: 5_000_000)

XCTAssertEqual(count, 4)

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

try await Task.sleep(nanoseconds: 1)
XCTAssertEqual(count, 4)
try await Task.sleep(nanoseconds: 5_000_000)
XCTAssertEqual(count, 5)
}

@MainActor
Expand Down Expand Up @@ -142,31 +142,31 @@ final class StoreReaderTests: XCTestCase {

XCTAssertEqual(count, 1)

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

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

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

XCTAssertEqual(count, 3)

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

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

XCTAssertEqual(count, 4)

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

try await Task.sleep(nanoseconds: 1_000_000)
try await Task.sleep(nanoseconds: 5_000_000)
XCTAssertEqual(count, 5)

}

@MainActor
Expand Down

0 comments on commit 1c0379b

Please sign in to comment.