Skip to content

Commit

Permalink
Fix TR tests compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ocket8888 committed Feb 25, 2022
1 parent a36e3ce commit 243bacc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ public void itDoesUseLocationFormatHeader() throws IOException, InterruptedExcep

assert json.has("location");
assert validLocations.contains(json.get("location").asText());
assert json.get("location").asText().startsWith("http://"));
assert json.get("location").asText().startsWith("http://");
} finally {
if (response != null) response.close();
}
Expand All @@ -657,7 +657,7 @@ public void itDoesUseLocationFormatHeader() throws IOException, InterruptedExcep
httpGet = new HttpGet("http://localhost:" + routerHttpPort + "/stuff?fakeClientIpAddress=12.34.56.78");
httpGet.addHeader("Host", "tr." + deliveryServiceId + ".bar");
httpGet.addHeader("X-TC-Format", "application/json");
CloseableHttpResponse response = null;
response = null;

try {
response = httpClient.execute(httpGet);
Expand All @@ -673,7 +673,7 @@ public void itDoesUseLocationFormatHeader() throws IOException, InterruptedExcep

assert json.has("location");
assert validLocations.contains(json.get("location").asText());
assert json.get("location").asText().startsWith("http://"));
assert json.get("location").asText().startsWith("http://");
} finally {
if (response != null) response.close();
}
Expand Down

0 comments on commit 243bacc

Please sign in to comment.