Skip to content

Commit

Permalink
Fix line endings issue with test
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Feb 21, 2018
1 parent 5b93c24 commit 9eccf95
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -75,7 +75,7 @@ public void testContentEncodedResource() throws IOException, URISyntaxException
final String compressedResource = HttpClientUtils.readResponse(result);
headers = result.getHeaders(Headers.CONTENT_TYPE_STRING);
Assert.assertEquals("text/html", headers[0].getValue());
Assert.assertEquals(nonCompressedResource, compressedResource);
Assert.assertEquals(nonCompressedResource.replace("\r", ""), compressedResource.replace("\r", "")); //ignore line ending differences
Assert.assertEquals("gzip", result.getFirstHeader(Headers.CONTENT_ENCODING_STRING).getValue());

} finally {
Expand Down

0 comments on commit 9eccf95

Please sign in to comment.