Skip to content

Commit

Permalink
Fix incorrect use of non-localhost connection in test
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynne committed Jun 9, 2023
1 parent 65877a5 commit 38cb397
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Tests/VaporTests/ClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,12 @@ final class ClientTests: XCTestCase {
}

func testClientLogging() throws {
print("We are testing client logging")
let app = Application(.testing)
defer { app.shutdown() }
let logs = TestLogHandler()
app.logger = logs.logger

_ = try app.client.get("https://www.vapor.codes").wait()
_ = try app.client.get("http://localhost:\(remoteAppPort!)/status/201").wait()

let metadata = logs.getMetadata()
XCTAssertNotNil(metadata["ahc-request-id"])
Expand Down

0 comments on commit 38cb397

Please sign in to comment.