Skip to content

Commit

Permalink
fix test for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Espey committed Nov 8, 2022
1 parent a1de52a commit ab8b51a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Xcode/Tests/ServerRawResponseTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@ class ServerRawResponseTests: XCTestCase {
let statusCode = response?.statusCode
XCTAssertNotNil(statusCode)
XCTAssertEqual(statusCode, 200)
#if !os(Linux)
if #available(iOS 13.0, macOS 10.15, tvOS 13.0, *) {
let header = response?.value(forHTTPHeaderField: "XXX-Custom-Header") ?? ""
XCTAssertEqual(header, testString)
} else {
// Fallback on earlier versions
}
#endif

XCTAssertEqual(body, testString.data(using: .utf8))
}

Expand Down

0 comments on commit ab8b51a

Please sign in to comment.