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 facd5fe commit 69d3d4e
Showing 1 changed file with 51 additions and 51 deletions.
102 changes: 51 additions & 51 deletions Tests/VergeTests/StoreReaderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,30 +142,30 @@ final class StoreReaderTests: XCTestCase {

XCTAssertEqual(count, 1)

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

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

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

XCTAssertEqual(count, 3)

Check failure on line 153 in Tests/VergeTests/StoreReaderTests.swift

View workflow job for this annotation

GitHub Actions / test

test_computed_property_equatable, XCTAssertEqual failed: ("2") is not equal to ("3")

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

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

XCTAssertEqual(count, 4)

Check failure on line 161 in Tests/VergeTests/StoreReaderTests.swift

View workflow job for this annotation

GitHub Actions / test

test_computed_property_equatable, XCTAssertEqual failed: ("3") is not equal to ("4")

Check failure on line 161 in Tests/VergeTests/StoreReaderTests.swift

View workflow job for this annotation

GitHub Actions / test

test_computed_property_equatable, XCTAssertEqual failed: ("3") is not equal to ("4")

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

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

}

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

XCTAssertEqual(count, 1)

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

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

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

XCTAssertEqual(count, 3)

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

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

XCTAssertEqual(count, 4)

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

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

}

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

XCTAssertEqual(count, 1)

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

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

try await Task.sleep(nanoseconds: 1)
XCTAssertEqual(count, 2)
try await Task.sleep(nanoseconds: 1_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: 1_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: 1_000_000)
XCTAssertEqual(count, 5)

}


Expand All @@ -325,31 +325,31 @@ final class StoreReaderTests: XCTestCase {

XCTAssertEqual(count, 1)

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

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

try await Task.sleep(nanoseconds: 1)
XCTAssertEqual(count, 2)
try await Task.sleep(nanoseconds: 1_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: 1_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: 1_000_000)
XCTAssertEqual(count, 5)

}

private struct NonEquatableBox<Value> {
Expand Down

0 comments on commit 69d3d4e

Please sign in to comment.