From 2dbbcfbe3320fbef54aae0d90fd06ed4d1096d35 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Fri, 4 Mar 2022 10:48:10 +0100 Subject: [PATCH] openvidu-server: extend timeouts during integration test --- .../server/test/integration/WebhookIntegrationTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openvidu-server/src/test/java/io/openvidu/server/test/integration/WebhookIntegrationTest.java b/openvidu-server/src/test/java/io/openvidu/server/test/integration/WebhookIntegrationTest.java index c544f44a..1cdc8e77 100644 --- a/openvidu-server/src/test/java/io/openvidu/server/test/integration/WebhookIntegrationTest.java +++ b/openvidu-server/src/test/java/io/openvidu/server/test/integration/WebhookIntegrationTest.java @@ -137,7 +137,7 @@ public class WebhookIntegrationTest { CustomWebhook.waitForEvent("sessionCreated", 250, TimeUnit.MILLISECONDS); }); // Now webhook response for event "sessionCreated" should be received - CustomWebhook.waitForEvent("sessionCreated", 750, TimeUnit.MILLISECONDS); + CustomWebhook.waitForEvent("sessionCreated", 1000, TimeUnit.MILLISECONDS); this.sessionRestController.initializeConnection(sessionId, Map.of()); @@ -160,7 +160,7 @@ public class WebhookIntegrationTest { anyInt(), refEq(null)); // Now webhook response for event "participantJoined" should be received - CustomWebhook.waitForEvent("participantJoined", 750, TimeUnit.MILLISECONDS); + CustomWebhook.waitForEvent("participantJoined", 1000, TimeUnit.MILLISECONDS); setHttpClientDelay(1); // These events will be received immediately @@ -190,7 +190,7 @@ public class WebhookIntegrationTest { CustomWebhook.waitForEvent("signalSent", 25, TimeUnit.MILLISECONDS); }); // Events now received after timeout - JsonObject signal3 = CustomWebhook.waitForEvent("signalSent", 500, TimeUnit.MILLISECONDS); + JsonObject signal3 = CustomWebhook.waitForEvent("signalSent", 1000, TimeUnit.MILLISECONDS); JsonObject signal4 = CustomWebhook.waitForEvent("signalSent", 25, TimeUnit.MILLISECONDS); JsonObject signal5 = CustomWebhook.waitForEvent("signalSent", 25, TimeUnit.MILLISECONDS); @@ -208,7 +208,7 @@ public class WebhookIntegrationTest { // Webhook is NOT configured to receive "sessionDestroyed" event assertThrows(TimeoutException.class, () -> { - CustomWebhook.waitForEvent("sessionDestroyed", 500, TimeUnit.MILLISECONDS); + CustomWebhook.waitForEvent("sessionDestroyed", 1000, TimeUnit.MILLISECONDS); }); } finally {