diff --git a/server/src/test/java/org/apache/druid/server/initialization/JettyTest.java b/server/src/test/java/org/apache/druid/server/initialization/JettyTest.java index 59c84b90e1e..ff8ae569d26 100644 --- a/server/src/test/java/org/apache/druid/server/initialization/JettyTest.java +++ b/server/src/test/java/org/apache/druid/server/initialization/JettyTest.java @@ -104,6 +104,14 @@ public class JettyTest extends BaseJettyTest private LatchedRequestStateHolder latchedRequestState; + @Override + public void setProperties() + { + // call super.setProperties first in case it is setting the same property as this class + super.setProperties(); + System.setProperty("druid.server.http.showDetailedJettyErrors", "true"); + } + @Override protected Injector setupInjector() { diff --git a/server/src/test/java/org/apache/druid/server/initialization/JettyWithResponseFilterEnabledTest.java b/server/src/test/java/org/apache/druid/server/initialization/JettyWithResponseFilterEnabledTest.java index b788e7102d2..62e6189d7de 100644 --- a/server/src/test/java/org/apache/druid/server/initialization/JettyWithResponseFilterEnabledTest.java +++ b/server/src/test/java/org/apache/druid/server/initialization/JettyWithResponseFilterEnabledTest.java @@ -27,8 +27,9 @@ public class JettyWithResponseFilterEnabledTest extends JettyTest @Override public void setProperties() { - System.setProperty("druid.server.http.showDetailedJettyErrors", "false"); + // call super.setProperties first in case it is setting the same property as this class super.setProperties(); + System.setProperty("druid.server.http.showDetailedJettyErrors", "false"); } @Test