Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-14561: Fix failing @Nightly test

Jan Høydahlf0764dbb5411
diff --git a/solr/core/src/test/org/apache/solr/handler/TestStressThreadBackup.java b/solr/core/src/test/org/apache/solr/handler/TestStressThreadBackup.java
index ad28b79aab7..3622948c50f 100644
--- a/solr/core/src/test/org/apache/solr/handler/TestStressThreadBackup.java
+++ b/solr/core/src/test/org/apache/solr/handler/TestStressThreadBackup.java
@@ -55,7 +55,9 @@ import org.apache.solr.common.SolrInputDocument;
import org.apache.solr.util.TimeOut;
import org.apache.solr.util.LogLevel;
import org.junit.After;
+import org.junit.AfterClass;
import org.junit.Before;
+import org.junit.BeforeClass;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -70,6 +72,17 @@ public class TestStressThreadBackup extends SolrCloudTestCase {
private SolrClient adminClient;
private SolrClient coreClient;
private String coreName;
+
+ @BeforeClass
+ public static void beforeClass() throws Exception {
+ System.setProperty("solr.allowPaths", "*");
+ }
+
+ @AfterClass
+ public static void afterClass() throws Exception {
+ System.clearProperty("solr.allowPaths");
+ }
+
@Before
public void beforeTest() throws Exception {
backupDir = createTempDir(getTestClass().getSimpleName() + "_backups").toFile();