Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Mar 10, 2023
1 parent df0b3e5 commit 589dc34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Tests/CorePromise/CombineTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ class CombineTests: XCTestCase {
}
}

#if swift(>=4.1)
#if canImport(Combine)
/// https://stackoverflow.com/a/60444607/2229783
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
private extension Publisher {
func future() -> Future<Output, Failure> {
return Future { promise in
Expand All @@ -230,3 +233,5 @@ private extension Publisher {
}
}
}
#endif
#endif

0 comments on commit 589dc34

Please sign in to comment.