diff --git a/integration-tests/src/test/java/org/apache/druid/tests/security/ITBasicAuthConfigurationTest.java b/integration-tests/src/test/java/org/apache/druid/tests/security/ITBasicAuthConfigurationTest.java index 04eb9da1f765..ea8e61ef3177 100644 --- a/integration-tests/src/test/java/org/apache/druid/tests/security/ITBasicAuthConfigurationTest.java +++ b/integration-tests/src/test/java/org/apache/druid/tests/security/ITBasicAuthConfigurationTest.java @@ -82,11 +82,12 @@ protected void setupHttpClientsAndUsers() throws Exception { super.setupHttpClientsAndUsers(); - // Add a delay to allow propagation of credentials to all services + // Add a large enough delay to allow propagation of credentials to all services. It'd be ideal + // to have a "readiness" endpoint exposed by different services that'd return the version of auth creds cached. try { - Thread.sleep(5000); + Thread.sleep(10000); } - catch (Throwable t) { + catch (InterruptedException e) { // Ignore exception } }