mirror of https://github.com/OpenVidu/openvidu.git
openvidu-e2e-tests: Fix possible race conditions in CustomWebhook.java
parent
775a7bd436
commit
39323c73a3
|
@ -66,14 +66,14 @@ public class CustomWebhook {
|
||||||
CustomWebhook.context.close();
|
CustomWebhook.context.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void clean() {
|
public synchronized static void clean() {
|
||||||
CustomWebhook.accumulatedNumberOfEvents = 0;
|
CustomWebhook.accumulatedNumberOfEvents = 0;
|
||||||
CustomWebhook.accumulatedEvents.clear();
|
CustomWebhook.accumulatedEvents.clear();
|
||||||
CustomWebhook.eventsInOrder.clear();
|
CustomWebhook.eventsInOrder.clear();
|
||||||
CustomWebhook.events.clear();
|
CustomWebhook.events.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void cleanEventsInOrder() {
|
public synchronized static void cleanEventsInOrder() {
|
||||||
CustomWebhook.eventsInOrder.clear();
|
CustomWebhook.eventsInOrder.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue