Skip to content

Commit

Permalink
fix test for linux platform
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnzhou committed Jun 10, 2024
1 parent 8923f85 commit e2dde7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tests/IntegrationTests/HTTPIntegrationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ final class HTTPIntegrationTests: XCTestCase {
let config = try HTTPPingClient.Configuration(url: "http://127.0.0.1:9090", count: 1, connectionTimeout: .milliseconds(10))
do {
_ = try runTest(pingConfig: config)
XCTFail("Expect throwing ")
XCTFail("Expect throwing IO error")
} catch let error as IOError {
print("in test error: \(error)")
XCTAssertEqual(expectedError.localizedDescription, error.localizedDescription)
} catch {
XCTFail("Expect throwing IO error, but throw \(error)")
}
}

Expand Down

0 comments on commit e2dde7a

Please sign in to comment.