mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-01 00:19:11 +00:00
[TEST] close REST test execution context only if not null
The context can be null when REST tests are disabled via sysprop.
This commit is contained in:
parent
f0e9b7b8ef
commit
5e1f95ca93
@ -170,8 +170,10 @@ public class ElasticsearchRestTests extends ElasticsearchIntegrationTest {
|
||||
|
||||
@AfterClass
|
||||
public static void close() {
|
||||
restTestExecutionContext.close();
|
||||
restTestExecutionContext = null;
|
||||
if (restTestExecutionContext != null) {
|
||||
restTestExecutionContext.close();
|
||||
restTestExecutionContext = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user