Skip to content

Commit fd1a2f9

Browse files
committed
Fix more imports for Linux
1 parent 1c89a51 commit fd1a2f9

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

Sources/ComposableArchitecture/TestStore.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
import Foundation
55
import XCTestDynamicOverlay
66

7+
#if os(Linux)
8+
import let CDispatch.NSEC_PER_MSEC
9+
import let CDispatch.NSEC_PER_SEC
10+
#endif
11+
712
/// A testable runtime for a reducer.
813
///
914
/// This object aids in writing expressive and exhaustive tests for features built in the

Tests/ComposableArchitectureTests/EffectRunTests.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
import Combine
21
import XCTest
32

43
@testable import ComposableArchitecture
54

5+
#if os(Linux)
6+
import let CDispatch.NSEC_PER_SEC
7+
#endif
8+
69
@MainActor
710
final class EffectRunTests: XCTestCase {
811
func testRun() async {

Tests/ComposableArchitectureTests/EffectTaskTests.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
import Combine
21
import XCTest
32

43
@testable import ComposableArchitecture
54

5+
#if os(Linux)
6+
import let CDispatch.NSEC_PER_SEC
7+
#endif
8+
69
@MainActor
710
final class EffectTaskTests: XCTestCase {
811
func testTask() async {

Tests/ComposableArchitectureTests/ViewStoreTests.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ import XCTest
66
import Combine
77
#endif
88

9+
#if os(Linux)
10+
import let CDispatch.NSEC_PER_MSEC
11+
import let CDispatch.NSEC_PER_SEC
12+
#endif
13+
914
@MainActor
1015
final class ViewStoreTests: XCTestCase {
1116
override func setUp() {

0 commit comments

Comments
 (0)