Skip to content

Commit 8f21873

Browse files
committed
wip
1 parent 2564925 commit 8f21873

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Tests/ComposableArchitectureTests/StoreLifetimeTests.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,20 +145,19 @@ final class StoreLifetimeTests: BaseTCATestCase {
145145

146146
@MainActor
147147
@available(*, deprecated)
148-
func testUnCachedStores() async {
148+
func testUnCachedStores() async throws {
149149
Logger.shared.isEnabled = true
150-
let clock = TestClock()
151150
let store = Store(initialState: Parent.State()) {
152151
Parent()
153152
} withDependencies: {
154-
$0.continuousClock = clock
153+
$0.continuousClock = ContinuousClock()
155154
}
156155
do {
157156
let child = store.scope(state: { $0.child }, action: { .child($0) })
158157
child.send(.start)
159158
XCTAssertEqual(store.withState(\.child.count), 1)
160159
}
161-
await clock.run(timeout: .seconds(5))
160+
try await Task.sleep(nanoseconds: 1_000_000_000)
162161
XCTAssertEqual(store.withState(\.child.count), 2)
163162
}
164163
}

0 commit comments

Comments
 (0)