mirror of https://github.com/OpenVidu/openvidu.git
openvidu-test-e2e: fix streamPropertyChangedEvent test
parent
e5a19c78a6
commit
eb914b5418
|
@ -839,7 +839,7 @@ public class OpenViduTestAppE2eTest extends AbstractOpenViduTestAppE2eTest {
|
|||
}
|
||||
|
||||
user.getEventManager().off("streamPropertyChanged");
|
||||
log.info("Thread assertions: {}", threadAssertions.toString());
|
||||
log.info("Thread assertions for unpublishing video: {}", threadAssertions.toString());
|
||||
for (Iterator<Boolean> iter = threadAssertions.iterator(); iter.hasNext();) {
|
||||
Assert.assertTrue("Some Event property was wrong", iter.next());
|
||||
iter.remove();
|
||||
|
@ -863,6 +863,13 @@ public class OpenViduTestAppE2eTest extends AbstractOpenViduTestAppE2eTest {
|
|||
return;
|
||||
}
|
||||
|
||||
user.getEventManager().off("streamPropertyChanged");
|
||||
log.info("Thread assertions for unpublishing audio: {}", threadAssertions.toString());
|
||||
for (Iterator<Boolean> iter = threadAssertions.iterator(); iter.hasNext();) {
|
||||
Assert.assertTrue("Some Event property was wrong", iter.next());
|
||||
iter.remove();
|
||||
}
|
||||
|
||||
// Filter
|
||||
final CountDownLatch latch3 = new CountDownLatch(2);
|
||||
user.getEventManager().on("streamPropertyChanged", (event) -> {
|
||||
|
@ -890,7 +897,7 @@ public class OpenViduTestAppE2eTest extends AbstractOpenViduTestAppE2eTest {
|
|||
}
|
||||
|
||||
user.getEventManager().off("streamPropertyChanged");
|
||||
log.info("Thread assertions: {}", threadAssertions.toString());
|
||||
log.info("Thread assertions for applying filter: {}", threadAssertions.toString());
|
||||
for (Iterator<Boolean> iter = threadAssertions.iterator(); iter.hasNext();) {
|
||||
Assert.assertTrue("Some Event property was wrong", iter.next());
|
||||
iter.remove();
|
||||
|
|
Loading…
Reference in New Issue