File tree Expand file tree Collapse file tree 7 files changed +8
-15
lines changed
Examples/VoiceMemos/VoiceMemosTests
Sources/ComposableArchitecture
Tests/ComposableArchitectureTests Expand file tree Collapse file tree 7 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ class VoiceMemosTests: XCTestCase {
8181
8282 var environment = VoiceMemosEnvironment . unimplemented
8383 environment. audioRecorder. requestRecordPermission = { false }
84- environment. mainRunLoop = ImmediateScheduler ( )
84+ environment. mainRunLoop = mainRunLoop
8585 environment. openSettings = { await didOpenSettings. setValue ( true ) }
8686
8787 let store = TestStore (
@@ -189,7 +189,7 @@ class VoiceMemosTests: XCTestCase {
189189
190190 var environment = VoiceMemosEnvironment . unimplemented
191191 environment. audioPlayer. play = { _ in throw SomeError ( ) }
192- environment. mainRunLoop = ImmediateScheduler ( )
192+ environment. mainRunLoop = mainRunLoop
193193
194194 let url = URL ( fileURLWithPath: " pointfreeco/functions.m4a " )
195195 let store = TestStore (
@@ -268,7 +268,7 @@ class VoiceMemosTests: XCTestCase {
268268 let url = URL ( fileURLWithPath: " pointfreeco/functions.m4a " )
269269 var environment = VoiceMemosEnvironment . unimplemented
270270 environment. audioPlayer. play = { _ in try await Task . never ( ) }
271- environment. mainRunLoop = TestScheduler ( )
271+ environment. mainRunLoop = mainRunLoop
272272
273273 let store = TestStore (
274274 initialState: VoiceMemosState (
Original file line number Diff line number Diff line change 11import CustomDump
22import Foundation
33
4- #if os(Linux) || os(Android)
5- import let CDispatch. NSEC_PER_USEC
6- import let CDispatch. NSEC_PER_SEC
7- #endif
8-
94extension String {
105 func indent( by indent: Int ) -> String {
116 let indentation = String ( repeating: " " , count: indent)
Original file line number Diff line number Diff line change 55 import XCTestDynamicOverlay
66
77 #if os(Linux)
8- import let CDispatch. NSEC_PER_MSEC
9- import let CDispatch. NSEC_PER_SEC
8+ import Dispatch
109 #endif
1110
1211 /// A testable runtime for a reducer.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import XCTest
33@testable import ComposableArchitecture
44
55#if os(Linux)
6- import let CDispatch . NSEC_PER_SEC
6+ import Dispatch
77#endif
88
99@MainActor
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import XCTest
33@testable import ComposableArchitecture
44
55#if os(Linux)
6- import let CDispatch . NSEC_PER_SEC
6+ import Dispatch
77#endif
88
99@MainActor
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import XCTest
44@testable import ComposableArchitecture
55
66#if os(Linux)
7- import let CDispatch . NSEC_PER_MSEC
7+ import Dispatch
88#endif
99
1010@MainActor
Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ import XCTest
77#endif
88
99#if os(Linux)
10- import let CDispatch. NSEC_PER_MSEC
11- import let CDispatch. NSEC_PER_SEC
10+ import Dispatch
1211#endif
1312
1413@MainActor
You can’t perform that action at this time.
0 commit comments