Fix test under windows

Silly `\r`.
This commit is contained in:
Nik Everett 2017-01-09 16:29:59 -05:00
parent d623df9372
commit 057194f9ab
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ public class RemoteScrollableHitSourceTests extends ESTestCase {
public void testNoContentTypeIsError() throws Exception {
Exception e = expectThrows(RuntimeException.class, () ->
sourceWithMockedRemoteCall(false, null, "main/0_20_5.json").lookupRemoteVersion(null));
assertThat(e.getCause().getCause().getMessage(), containsString("Response didn't include Content-Type: body={\n \"ok\""));
assertThat(e.getCause().getCause().getMessage(), containsString("Response didn't include Content-Type: body={"));
}
private RemoteScrollableHitSource sourceWithMockedRemoteCall(String... paths) throws Exception {