diff --git a/tests/src/test/java/io/apicurio/tests/ui/DeleteArtifactIT.java b/tests/src/test/java/io/apicurio/tests/ui/DeleteArtifactIT.java index 755c0e6338..8d2396b782 100644 --- a/tests/src/test/java/io/apicurio/tests/ui/DeleteArtifactIT.java +++ b/tests/src/test/java/io/apicurio/tests/ui/DeleteArtifactIT.java @@ -19,6 +19,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; +import java.time.Duration; import java.util.List; import org.junit.jupiter.api.AfterEach; @@ -73,7 +74,7 @@ void testDeleteArtifacts(RegistryService service) throws Exception { page.deleteArtifact(artifactId1); - TestUtils.waitFor("Artifacts list updated", Constants.POLL_INTERVAL, Constants.TIMEOUT_GLOBAL, () -> { + TestUtils.waitFor("Artifacts list updated", Constants.POLL_INTERVAL, Duration.ofSeconds(60).toMillis(), () -> { try { return page.getArtifactsList().size() == 1; } catch (Exception e) { @@ -86,7 +87,7 @@ void testDeleteArtifacts(RegistryService service) throws Exception { page.deleteArtifact(artifactId2); - TestUtils.waitFor("Artifacts list updated", Constants.POLL_INTERVAL, Constants.TIMEOUT_GLOBAL, () -> { + TestUtils.waitFor("Artifacts list updated", Constants.POLL_INTERVAL, Duration.ofSeconds(60).toMillis(), () -> { try { return page.getArtifactsList().size() == 0; } catch (Exception e) { diff --git a/utils/tests/src/main/java/io/apicurio/registry/utils/tests/TestUtils.java b/utils/tests/src/main/java/io/apicurio/registry/utils/tests/TestUtils.java index e2441d57d9..04ae7379da 100644 --- a/utils/tests/src/main/java/io/apicurio/registry/utils/tests/TestUtils.java +++ b/utils/tests/src/main/java/io/apicurio/registry/utils/tests/TestUtils.java @@ -233,7 +233,7 @@ public static void retry(RunnableExc runnable) throws Exception { } public static T retry(Callable callable) throws Exception { - return retry(callable, "Action #" + System.currentTimeMillis(), 5); + return retry(callable, "Action #" + System.currentTimeMillis(), 15); } public static void retry(RunnableExc runnable, String name, int maxRetries) throws Exception {