Skip to content

Commit

Permalink
Fix JDK-version dependent exception message parsing
Browse files Browse the repository at this point in the history
This commit fixes some JDK-version dependent exception message checking
in the discovery node role tests.
  • Loading branch information
jasontedor committed Jun 13, 2019
1 parent 19909ed commit 816f12f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected Setting<Boolean> roleSetting() {
}

})));
assertThat(e, hasToString(containsString("Duplicate key foo ")));
assertThat(e, hasToString(containsString("Duplicate key")));
}

public void testDiscoveryNodeSetPossibleRolesRejectsDuplicateRoleNameAbbreviations() {
Expand All @@ -72,7 +72,7 @@ protected Setting<Boolean> roleSetting() {
}

})));
assertThat(e, hasToString(containsString("Duplicate key f ")));
assertThat(e, hasToString(containsString("Duplicate key")));
}

}

0 comments on commit 816f12f

Please sign in to comment.