[TEST] Fix expected error message
Original commit: elastic/x-pack-elasticsearch@5a60b66b4a
This commit is contained in:
parent
2c8545f38f
commit
47e28669b3
|
@ -422,7 +422,7 @@ public class MachineLearningLicensingTests extends BaseMlIntegTestCase {
|
||||||
if (invalidLicense) {
|
if (invalidLicense) {
|
||||||
// so the license expired then job closes automatically, so an error is expected:
|
// so the license expired then job closes automatically, so an error is expected:
|
||||||
Exception e = expectThrows(ElasticsearchStatusException.class, listener::actionGet);
|
Exception e = expectThrows(ElasticsearchStatusException.class, listener::actionGet);
|
||||||
assertEquals("cannot close job, expected job state [opened], but got [closed]", e.getMessage());
|
assertEquals("cannot close job [foo], expected job state [opened], but got [closed]", e.getMessage());
|
||||||
} else {
|
} else {
|
||||||
listener.actionGet();
|
listener.actionGet();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue