openvidu-test-e2e: print out streamPropertyChanged events

pull/531/head
pabloFuente 2020-09-03 20:09:51 +02:00
parent 401fc3d7fa
commit e37e5b7922
1 changed files with 2 additions and 0 deletions

View File

@ -937,6 +937,7 @@ public class OpenViduTestAppE2eTest {
// Unpublish video
final CountDownLatch latch1 = new CountDownLatch(2);
user.getEventManager().on("streamPropertyChanged", (event) -> {
System.out.println(event.toString());
threadAssertions.add("videoActive".equals(event.get("changedProperty").getAsString()));
threadAssertions.add(!event.get("newValue").getAsBoolean());
latch1.countDown();
@ -960,6 +961,7 @@ public class OpenViduTestAppE2eTest {
// Unpublish audio
final CountDownLatch latch2 = new CountDownLatch(2);
user.getEventManager().on("streamPropertyChanged", (event) -> {
System.out.println(event.toString());
threadAssertions.add("audioActive".equals(event.get("changedProperty").getAsString()));
threadAssertions.add(!event.get("newValue").getAsBoolean());
latch2.countDown();