Skip to content

Commit 5db2b4b

Browse files
authored
Update WebRTCClientTest.java
1 parent 2441f17 commit 5db2b4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webrtc-android-framework/src/test/java/io/antmedia/webrtcandroidframework/WebRTCClientTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ public void testOnTakeConfiguration() {
801801
verify(webRTCClient, times(1)).createAnswer(streamId);
802802
}
803803
@Test
804-
public void audioOnlyTest(){
804+
public void audioOnlyTest() throws InterruptedException{
805805

806806
PeerConnection pc = mock(PeerConnection.class);
807807
webRTCClient.addPeerConnection("test",pc);
@@ -832,6 +832,7 @@ public void audioOnlyTest(){
832832
doReturn(transceivers).when(pc).getTransceivers();
833833

834834
webRTCClient.createAnswer("test");
835+
Thread.sleep(3000);
835836

836837
verify(videoTransceiver1).setDirection(RtpTransceiver.RtpTransceiverDirection.INACTIVE);
837838
verify(videoTransceiver2).setDirection(RtpTransceiver.RtpTransceiverDirection.INACTIVE);

0 commit comments

Comments
 (0)