[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…
Reference in New Issue