tboeghk commented on code in PR #2316:
URL: https://github.com/apache/solr/pull/2316#discussion_r1756202876


##########
solr/core/src/test/org/apache/solr/cloud/ReplicateFromLeaderTest.java:
##########
@@ -18,54 +18,94 @@
 package org.apache.solr.cloud;
 
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertThrows;
 
+import org.apache.solr.common.SolrException;
 import org.apache.solr.core.SolrConfig;
+import org.junit.After;
+import org.junit.Before;
 import org.junit.Test;
 
 public class ReplicateFromLeaderTest {
 
+  private String jettyTestMode;
+
+  @Before
+  public void setUp() {
+    jettyTestMode = System.getProperty("jetty.testMode");
+    System.clearProperty("jetty.testMode");
+  }
+
+  @After
+  public void tearDown() {
+    if (jettyTestMode != null) {
+      System.setProperty("jetty.testMode", jettyTestMode);
+    }
+  }
+

Review Comment:
   Yes, this is due to `jetty.testMode` being set during unit tests by default 
:-/



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to