Skip to content

Commit

Permalink
Fix compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jun 25, 2021
1 parent 81fdad9 commit dc04daa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Tests/Core/ThenableTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@ class ThenableTests: XCTestCase {
enum E: Error { case dummy }

let ex = expectation(description: "")
Promise(error: E.dummy).compactMap {
Int($0)

let p = Promise<Int>(error: E.dummy)

p.compactMap { (x: Int) -> Int? in
Int(x)
}.catch {
if case E.dummy = $0 {} else {
XCTFail()
Expand Down
2 changes: 1 addition & 1 deletion Tests/PMKFoundation/TestNSURLSession.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if !os(Linux)
#if !os(Linux) && !os(watchOS)

import OHHTTPStubsSwift
import PMKFoundation
Expand Down

0 comments on commit dc04daa

Please sign in to comment.