mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
[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) {
|
||||
// so the license expired then job closes automatically, so an error is expected:
|
||||
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 {
|
||||
listener.actionGet();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user