Skip to content

Commit 8775fc1

Browse files
committed
fixup
1 parent 88704d3 commit 8775fc1

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Tests/AsyncHTTPClientTests/HTTPClientTests.swift

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
@testable import AsyncHTTPClient
15+
import AsyncHTTPClient
1616
import NIO
1717
import NIOFoundationCompat
1818
import NIOHTTP1
@@ -23,7 +23,7 @@ class HTTPClientTests: XCTestCase {
2323

2424
func testRequestURI() throws {
2525
let request1 = try Request(url: "https://someserver.com:8888/some/path?foo=bar")
26-
XCTAssertEqual(request1.host, "someserver.com")
26+
XCTAssertEqual(request1.url.host, "someserver.com")
2727
XCTAssertEqual(request1.url.path, "/some/path")
2828
XCTAssertEqual(request1.url.query!, "foo=bar")
2929
XCTAssertEqual(request1.port, 8888)
@@ -46,11 +46,7 @@ class HTTPClientTests: XCTestCase {
4646
}
4747

4848
func testSchemaCasing() throws {
49-
let request1 = try Request(url: "https://someserver.com:8888/some/path?foo=bar")
50-
XCTAssertNotNil(request1)
51-
52-
let request2 = try Request(url: "hTTpS://someserver.com:8888/some/path?foo=bar")
53-
XCTAssertNotNil(request2)
49+
XCTAssertNoThrow(try Request(url: "hTTpS://someserver.com:8888/some/path?foo=bar"))
5450
}
5551

5652
func testGet() throws {

0 commit comments

Comments
 (0)