You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2020/06/30 12:37:28 UTC

[lucene-solr] branch master updated: SOLR-14561: Fix failing @Nightly test

This is an automated email from the ASF dual-hosted git repository.

janhoy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new f0764db  SOLR-14561: Fix failing @Nightly test
f0764db is described below

commit f0764dbb5411fabd168a643aec0f4ee5a8e6a1c0
Author: Jan Høydahl <ja...@apache.org>
AuthorDate: Tue Jun 30 14:37:10 2020 +0200

    SOLR-14561: Fix failing @Nightly test
---
 .../org/apache/solr/handler/TestStressThreadBackup.java     | 13 +++++++++++++
 1 file changed, 13 insertions(+)

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 ad28b79..3622948 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();