[TEST] Fix expected error message

Original commit: elastic/x-pack-elasticsearch@5a60b66b4a
This commit is contained in:
Martijn van Groningen 2017-03-20 15:07:13 +01:00
parent 2c8545f38f
commit 47e28669b3
1 changed files with 1 additions and 1 deletions

View File

@ -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();
} }