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() {
|
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…
Reference in New Issue