test: avoid NPE
This commit is contained in:
parent
e7e5216382
commit
141aa226f4
|
@ -480,6 +480,7 @@ public class FullClusterRestartIT extends ESRestTestCase {
|
|||
rsp = toMap(r);
|
||||
logger.info("upgrade api response: {}", rsp);
|
||||
Map<?, ?> versions = (Map<?, ?>) XContentMapValues.extractValue("upgraded_indices." + index, rsp);
|
||||
assertNotNull(versions);
|
||||
Version upgradeVersion = Version.fromString((String) versions.get("upgrade_version"));
|
||||
assertEquals(Version.CURRENT, upgradeVersion);
|
||||
org.apache.lucene.util.Version luceneVersion =
|
||||
|
|
Loading…
Reference in New Issue