Fixes NPE in multi node qa testt

This commit is contained in:
Colin Goodheart-Smithe 2018-10-25 10:44:46 +01:00
parent e7fddb5c93
commit 0b26f8b14c
No known key found for this signature in database
GPG Key ID: F975E7BDD739B3C7
1 changed files with 4 additions and 4 deletions

View File

@ -288,10 +288,10 @@ public class TimeSeriesLifecycleActionsIT extends ESRestTestCase {
assertNull(indexStatus.get("phase"));
assertNull(indexStatus.get("action"));
assertNull(indexStatus.get("step"));
assertEquals("policy [does_not_exist] does not exist",
((Map<String, String>)indexStatus.get("step_info")).get("reason"));
assertEquals("illegal_argument_exception",
((Map<String, String>)indexStatus.get("step_info")).get("type"));
Map<String, String> stepInfo = (Map<String, String>) indexStatus.get("step_info");
assertNotNull(stepInfo);
assertEquals("policy [does_not_exist] does not exist", stepInfo.get("reason"));
assertEquals("illegal_argument_exception", stepInfo.get("type"));
});
}