mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-01 00:19:11 +00:00
[TEST] Only close GLOBAL_CLUSTER if it's non-null
This commit is contained in:
parent
8a70b115f2
commit
2be018db84
@ -618,7 +618,9 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase
|
||||
// tests get a new / clean cluster
|
||||
clearClusters();
|
||||
if (currentCluster == GLOBAL_CLUSTER) {
|
||||
GLOBAL_CLUSTER.close();
|
||||
if (GLOBAL_CLUSTER != null) {
|
||||
GLOBAL_CLUSTER.close();
|
||||
}
|
||||
GLOBAL_CLUSTER = null;
|
||||
initializeGlobalCluster(); // re-init that cluster
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user