Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-4300: In TestLazyCores, convert static field into local variable to avoid post-test memory retention

Steven Rowe70fd1bcb2b80
diff --git a/solr/core/src/test/org/apache/solr/core/TestLazyCores.java b/solr/core/src/test/org/apache/solr/core/TestLazyCores.java
index 59be2f779b8..0fb95608acf 100644
--- a/solr/core/src/test/org/apache/solr/core/TestLazyCores.java
+++ b/solr/core/src/test/org/apache/solr/core/TestLazyCores.java
@@ -248,10 +248,10 @@ public class TestLazyCores extends SolrTestCaseJ4 {
}
}
- static List<SolrCore> _theCores = new ArrayList<SolrCore>();
// Test case for SOLR-4300
@Test
public void testRace() throws Exception {
+ final List<SolrCore> _theCores = new ArrayList<SolrCore>();
final CoreContainer cc = init();
try {