From 1c0379b738615b65a08295a4980e26009632cb33 Mon Sep 17 00:00:00 2001 From: Muukii Date: Fri, 23 Feb 2024 01:39:31 +0900 Subject: [PATCH] Update --- Tests/VergeTests/StoreReaderTests.swift | 34 ++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Tests/VergeTests/StoreReaderTests.swift b/Tests/VergeTests/StoreReaderTests.swift index b883a98dd3..fd034b95ae 100644 --- a/Tests/VergeTests/StoreReaderTests.swift +++ b/Tests/VergeTests/StoreReaderTests.swift @@ -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 @@ -142,13 +142,13 @@ 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) @@ -156,7 +156,7 @@ final class StoreReaderTests: XCTestCase { $0.count_1 += 1 } - try await Task.sleep(nanoseconds: 1_000_000) + try await Task.sleep(nanoseconds: 5_000_000) XCTAssertEqual(count, 4) @@ -164,9 +164,9 @@ final class StoreReaderTests: XCTestCase { $0.count_1 += 1 } - try await Task.sleep(nanoseconds: 1_000_000) + try await Task.sleep(nanoseconds: 5_000_000) XCTAssertEqual(count, 5) - + } @MainActor