openvidu-server: extend timeouts during integration test

pull/707/head
pabloFuente 2022-03-04 10:48:10 +01:00
parent 8a598a1702
commit 2dbbcfbe33
1 changed files with 4 additions and 4 deletions

View File

@ -137,7 +137,7 @@ public class WebhookIntegrationTest {
CustomWebhook.waitForEvent("sessionCreated", 250, TimeUnit.MILLISECONDS); CustomWebhook.waitForEvent("sessionCreated", 250, TimeUnit.MILLISECONDS);
}); });
// Now webhook response for event "sessionCreated" should be received // 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()); this.sessionRestController.initializeConnection(sessionId, Map.of());
@ -160,7 +160,7 @@ public class WebhookIntegrationTest {
anyInt(), refEq(null)); anyInt(), refEq(null));
// Now webhook response for event "participantJoined" should be received // Now webhook response for event "participantJoined" should be received
CustomWebhook.waitForEvent("participantJoined", 750, TimeUnit.MILLISECONDS); CustomWebhook.waitForEvent("participantJoined", 1000, TimeUnit.MILLISECONDS);
setHttpClientDelay(1); setHttpClientDelay(1);
// These events will be received immediately // These events will be received immediately
@ -190,7 +190,7 @@ public class WebhookIntegrationTest {
CustomWebhook.waitForEvent("signalSent", 25, TimeUnit.MILLISECONDS); CustomWebhook.waitForEvent("signalSent", 25, TimeUnit.MILLISECONDS);
}); });
// Events now received after timeout // 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 signal4 = CustomWebhook.waitForEvent("signalSent", 25, TimeUnit.MILLISECONDS);
JsonObject signal5 = 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 // Webhook is NOT configured to receive "sessionDestroyed" event
assertThrows(TimeoutException.class, () -> { assertThrows(TimeoutException.class, () -> {
CustomWebhook.waitForEvent("sessionDestroyed", 500, TimeUnit.MILLISECONDS); CustomWebhook.waitForEvent("sessionDestroyed", 1000, TimeUnit.MILLISECONDS);
}); });
} finally { } finally {