Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Fixed issue that caused test to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
mauran committed Oct 23, 2017
1 parent 8a66c39 commit d230b45
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Tests/GatekeeperTests/GatekeeperTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,18 @@ extension GatekeeperTests {
}

func getHTTPRequest() -> Request {
return try! Request(method: .get, uri: "http://localhost:8080/")
return Request(method: .get, uri: "http://localhost:8080/")
}

func getHTTPSRequest() -> Request {

var headers = [HeaderKey: String]()
headers["X-Forwarded-For"] = "192.168.1.2"

return try! Request(
method: .get,
uri: URI("https://localhost:8080/"),
peerAddress: PeerAddress(stream: "192.168.1.2")
headers: headers
)
}
}
Expand Down

0 comments on commit d230b45

Please sign in to comment.