mirror of
https://github.com/keycloak/keycloak.git
synced 2026-05-02 05:00:58 -05:00
Fix flaky ManagementDistTest (#28522)
Fixes #28509 Signed-off-by: Martin Bartoš <mabartos@redhat.com>
This commit is contained in:
+3
-3
@@ -27,7 +27,7 @@ import org.keycloak.it.junit5.extension.DistributionTest;
|
||||
import org.keycloak.it.junit5.extension.DistributionType;
|
||||
import org.keycloak.it.utils.KeycloakDistribution;
|
||||
|
||||
import java.net.SocketException;
|
||||
import java.io.IOException;
|
||||
|
||||
import static io.restassured.RestAssured.when;
|
||||
import static org.hamcrest.CoreMatchers.is;
|
||||
@@ -56,8 +56,8 @@ public class ManagementDistTest {
|
||||
CLIResult cliResult = (CLIResult) result;
|
||||
cliResult.assertNoMessage("Management interface listening on");
|
||||
|
||||
assertThrows(SocketException.class, () -> when().get("/"), "Connection refused must be thrown");
|
||||
assertThrows(SocketException.class, () -> when().get("/health"), "Connection refused must be thrown");
|
||||
assertThrows(IOException.class, () -> when().get("/"), "Connection refused must be thrown");
|
||||
assertThrows(IOException.class, () -> when().get("/health"), "Connection refused must be thrown");
|
||||
|
||||
distribution.setRequestPort(8080);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user