Clear some more static state in tests
This was causing CI build failures that didn't reproduce consistently locally. Hopefully this will fix the error on CI.
This commit is contained in:
parent
eb9b84e6c3
commit
4f262ce11e
|
@ -30,6 +30,7 @@ import org.elasticsearch.common.settings.Settings;
|
|||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.indices.IndicesModule;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -64,6 +65,11 @@ public class SearchRequestTests extends ESTestCase {
|
|||
namedWriteableRegistry = new NamedWriteableRegistry(entries);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void afterClass() {
|
||||
namedWriteableRegistry = null;
|
||||
}
|
||||
|
||||
public void testSerialization() throws Exception {
|
||||
SearchRequest searchRequest = createSearchRequest();
|
||||
try (BytesStreamOutput output = new BytesStreamOutput()) {
|
||||
|
|
Loading…
Reference in New Issue