openvidu-e2e-tests: Fix possible race conditions in CustomWebhook.java

pull/820/head
cruizba 2023-10-12 22:33:48 +02:00
parent 775a7bd436
commit 39323c73a3
1 changed files with 2 additions and 2 deletions

View File

@ -66,14 +66,14 @@ public class CustomWebhook {
CustomWebhook.context.close();
}
public static void clean() {
public synchronized static void clean() {
CustomWebhook.accumulatedNumberOfEvents = 0;
CustomWebhook.accumulatedEvents.clear();
CustomWebhook.eventsInOrder.clear();
CustomWebhook.events.clear();
}
public static void cleanEventsInOrder() {
public synchronized static void cleanEventsInOrder() {
CustomWebhook.eventsInOrder.clear();
}