mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-27 10:28:28 +00:00
[TEST] only call TestCluster#afterTest() if cluster was successfully initialized
This commit is contained in:
parent
0475a052b0
commit
f22e51ae81
@ -554,8 +554,11 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase
|
||||
initializeGlobalCluster(); // re-init that cluster
|
||||
}
|
||||
}
|
||||
currentCluster.afterTest();
|
||||
currentCluster = null;
|
||||
if (currentCluster != null) {
|
||||
// this can be null if the test fails due to static initialization ie. missing parameter on the cmd
|
||||
currentCluster.afterTest();
|
||||
currentCluster = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user