openvidu-test-e2e: less restrictive unhandled alert exception

pull/672/head
pabloFuente 2021-11-15 12:37:28 +01:00
parent 13317a888d
commit 28b1763b31
1 changed files with 1 additions and 2 deletions

View File

@ -99,8 +99,7 @@ public class OpenViduEventManager {
Thread.UncaughtExceptionHandler h = new Thread.UncaughtExceptionHandler() { Thread.UncaughtExceptionHandler h = new Thread.UncaughtExceptionHandler() {
public void uncaughtException(Thread th, Throwable ex) { public void uncaughtException(Thread th, Throwable ex) {
if (ex.getClass().getSimpleName().equals("UnhandledAlertException") if (ex.getClass().getSimpleName().equals("UnhandledAlertException")) {
&& ex.getMessage().contains("unexpected alert open")) {
stopPolling(true, false); stopPolling(true, false);
System.err System.err
.println("Alert opened (" + ex.getMessage() + "). Waiting 1 second and restarting polling"); .println("Alert opened (" + ex.getMessage() + "). Waiting 1 second and restarting polling");