fixed test to avoid local network fragility

Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2019-06-19 12:24:03 +02:00
parent b7bd4aa850
commit a7b5430f96
1 changed files with 2 additions and 4 deletions

View File

@ -1062,12 +1062,10 @@ public abstract class RFC2616BaseTest
{
String specId;
String serverURI = server.getServerURI().toASCIIString();
// HTTP/1.0
StringBuffer req1 = new StringBuffer();
req1.append("GET /redirect/ HTTP/1.0\n");
req1.append("Host: myhost:1234\n");
req1.append("Connection: Close\n");
req1.append("\n");
@ -1075,7 +1073,7 @@ public abstract class RFC2616BaseTest
specId = "10.3 Redirection HTTP/1.0 - basic";
assertThat(specId, response.getStatus(), is(HttpStatus.FOUND_302));
assertEquals(serverURI + "/tests/", response.get("Location"),specId);
assertEquals("http://myhost:1234/tests/", response.get("Location"),specId);
}
/**