Fix JDK-version dependent exception message parsing

This commit fixes some JDK-version dependent exception message checking
in the discovery node role tests.
This commit is contained in:
Jason Tedor 2019-06-13 15:44:40 -04:00
parent 5bc3b7f741
commit 55dba6ffad
No known key found for this signature in database
GPG Key ID: FA89F05560F16BC5
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ public class DiscoveryNodeRoleTests extends ESTestCase {
} }
})))); }))));
assertThat(e, hasToString(containsString("Duplicate key foo "))); assertThat(e, hasToString(containsString("Duplicate key")));
} }
public void testDiscoveryNodeSetPossibleRolesRejectsDuplicateRoleNameAbbreviations() { public void testDiscoveryNodeSetPossibleRolesRejectsDuplicateRoleNameAbbreviations() {
@ -73,7 +73,7 @@ public class DiscoveryNodeRoleTests extends ESTestCase {
} }
})))); }))));
assertThat(e, hasToString(containsString("Duplicate key f "))); assertThat(e, hasToString(containsString("Duplicate key")));
} }
} }