mirror of https://github.com/apache/druid.git
fix test issue where JettyTest would fail if JettyWithResponseFilterEnabledTest ran before it (#11803)
this change ensures that JettyTest is setting the properties it needs in case some other test overwrites them this also changes up the ordering of the call for setProperties to call super's first in case super is setting the same property
This commit is contained in:
parent
938c1493e5
commit
9c15f938fd
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue