Skip to content

Commit

Permalink
Fix tests that rely on Combine for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmichel committed Sep 1, 2023
1 parent 563b73c commit 86bdf34
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/CombineSchedulersTests/ImmediateSchedulerTests.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if canImport(Combine)
import Combine
import CombineSchedulers
import XCTest
Expand All @@ -17,3 +18,4 @@ final class ImmediateSchedulerTests: XCTestCase {
XCTAssertEqual(worked, 3)
}
}
#endif
2 changes: 2 additions & 0 deletions Tests/CombineSchedulersTests/TestSchedulerTests.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if canImport(Combine)
import Combine
import CombineSchedulers
import XCTest
Expand Down Expand Up @@ -250,3 +251,4 @@ final class CombineSchedulerTests: XCTestCase {
XCTAssertEqual(testScheduler.now, start.advanced(by: .seconds(2)))
}
}
#endif
2 changes: 2 additions & 0 deletions Tests/CombineSchedulersTests/TimerTests.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if canImport(Combine)
import Combine
import CombineSchedulers
import XCTest
Expand Down Expand Up @@ -142,3 +143,4 @@ final class TimerTests: XCTestCase {
XCTAssertEqual(count, 3)
}
}
#endif
2 changes: 2 additions & 0 deletions Tests/CombineSchedulersTests/UISchedulerTests.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if canImport(Combine)
import Combine
import CombineSchedulers
import XCTest
Expand Down Expand Up @@ -29,3 +30,4 @@ final class UISchedulerTests: XCTestCase {
XCTAssertTrue(worked)
}
}
#endif
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#if compiler(>=5.4)
#if canImport(Combine)
import Combine
import CombineSchedulers
import XCTest
Expand Down Expand Up @@ -32,4 +33,5 @@
}
}
}
#endif // canImport(Combine)
#endif

0 comments on commit 86bdf34

Please sign in to comment.