Skip to content

Commit c943110

Browse files
authored
Test fix: Unknown host error message is different on Windows, agasting (#74619)
the expected message accordingly
1 parent 8be47c9 commit c943110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/enrollment/CreateEnrollmentTokenTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ public void testGetFilteredAddresses () throws Exception {
373373

374374
final List<String> invalid_addresses = Arrays.asList("nldfnbndflbnl");
375375
UnknownHostException ex = expectThrows(UnknownHostException.class, () -> getFilteredAddresses(invalid_addresses));
376-
assertThat(ex.getMessage(), Matchers.containsString("nldfnbndflbnl:"));
376+
assertThat(ex.getMessage(), Matchers.containsString("nldfnbndflbnl"));
377377
}
378378

379379
private Map<String, String> getDecoded(String token) throws IOException {

0 commit comments

Comments
 (0)