mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-19 19:35:02 +00:00
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:
parent
5bc3b7f741
commit
55dba6ffad
@ -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() {
|
||||
@ -73,7 +73,7 @@ public class DiscoveryNodeRoleTests extends ESTestCase {
|
||||
}
|
||||
|
||||
}))));
|
||||
assertThat(e, hasToString(containsString("Duplicate key f ")));
|
||||
assertThat(e, hasToString(containsString("Duplicate key")));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user