File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Tests/ComposableArchitectureTests Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments