Skip to content

Commit dc04daa

Browse files
committed
Fix compile issues
1 parent 81fdad9 commit dc04daa

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Tests/Core/ThenableTests.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,11 @@ class ThenableTests: XCTestCase {
8484
enum E: Error { case dummy }
8585

8686
let ex = expectation(description: "")
87-
Promise(error: E.dummy).compactMap {
88-
Int($0)
87+
88+
let p = Promise<Int>(error: E.dummy)
89+
90+
p.compactMap { (x: Int) -> Int? in
91+
Int(x)
8992
}.catch {
9093
if case E.dummy = $0 {} else {
9194
XCTFail()

Tests/PMKFoundation/TestNSURLSession.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !os(Linux)
1+
#if !os(Linux) && !os(watchOS)
22

33
import OHHTTPStubsSwift
44
import PMKFoundation

0 commit comments

Comments
 (0)