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:
Nik Everett 2016-08-15 18:51:17 -04:00
parent eb9b84e6c3
commit 4f262ce11e
1 changed files with 6 additions and 0 deletions

View File

@ -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()) {