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 {
81
81
82
82
var environment = VoiceMemosEnvironment . unimplemented
83
83
environment. audioRecorder. requestRecordPermission = { false }
84
- environment. mainRunLoop = ImmediateScheduler ( )
84
+ environment. mainRunLoop = mainRunLoop
85
85
environment. openSettings = { await didOpenSettings. setValue ( true ) }
86
86
87
87
let store = TestStore (
@@ -189,7 +189,7 @@ class VoiceMemosTests: XCTestCase {
189
189
190
190
var environment = VoiceMemosEnvironment . unimplemented
191
191
environment. audioPlayer. play = { _ in throw SomeError ( ) }
192
- environment. mainRunLoop = ImmediateScheduler ( )
192
+ environment. mainRunLoop = mainRunLoop
193
193
194
194
let url = URL ( fileURLWithPath: " pointfreeco/functions.m4a " )
195
195
let store = TestStore (
@@ -268,7 +268,7 @@ class VoiceMemosTests: XCTestCase {
268
268
let url = URL ( fileURLWithPath: " pointfreeco/functions.m4a " )
269
269
var environment = VoiceMemosEnvironment . unimplemented
270
270
environment. audioPlayer. play = { _ in try await Task . never ( ) }
271
- environment. mainRunLoop = TestScheduler ( )
271
+ environment. mainRunLoop = mainRunLoop
272
272
273
273
let store = TestStore (
274
274
initialState: VoiceMemosState (
Original file line number Diff line number Diff line change 1
1
import CustomDump
2
2
import Foundation
3
3
4
- #if os(Linux) || os(Android)
5
- import let CDispatch. NSEC_PER_USEC
6
- import let CDispatch. NSEC_PER_SEC
7
- #endif
8
-
9
4
extension String {
10
5
func indent( by indent: Int ) -> String {
11
6
let indentation = String ( repeating: " " , count: indent)
Original file line number Diff line number Diff line change 5
5
import XCTestDynamicOverlay
6
6
7
7
#if os(Linux)
8
- import let CDispatch. NSEC_PER_MSEC
9
- import let CDispatch. NSEC_PER_SEC
8
+ import Dispatch
10
9
#endif
11
10
12
11
/// A testable runtime for a reducer.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import XCTest
3
3
@testable import ComposableArchitecture
4
4
5
5
#if os(Linux)
6
- import let CDispatch . NSEC_PER_SEC
6
+ import Dispatch
7
7
#endif
8
8
9
9
@MainActor
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import XCTest
3
3
@testable import ComposableArchitecture
4
4
5
5
#if os(Linux)
6
- import let CDispatch . NSEC_PER_SEC
6
+ import Dispatch
7
7
#endif
8
8
9
9
@MainActor
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import XCTest
4
4
@testable import ComposableArchitecture
5
5
6
6
#if os(Linux)
7
- import let CDispatch . NSEC_PER_MSEC
7
+ import Dispatch
8
8
#endif
9
9
10
10
@MainActor
Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ import XCTest
7
7
#endif
8
8
9
9
#if os(Linux)
10
- import let CDispatch. NSEC_PER_MSEC
11
- import let CDispatch. NSEC_PER_SEC
10
+ import Dispatch
12
11
#endif
13
12
14
13
@MainActor
You can’t perform that action at this time.
0 commit comments