Skip to content

Commit

Permalink
Update WebRTCClientTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaboleken committed Oct 2, 2023
1 parent f2d4a1b commit 7e7ca08
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import static org.mockito.Matchers.anyLong;
import static org.mockito.Matchers.anyString;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.atLeastOnce;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.doThrow;
Expand Down Expand Up @@ -905,7 +906,7 @@ public void testCreatePeerConnection() {
doNothing().when(webRTCClient).reportError(anyString(), anyString());
doThrow(new NullPointerException()).when(webRTCClient).createMediaConstraintsInternal();
webRTCClient.createPeerConnection(streamId);
verify(webRTCClient, timeout(1000)).reportError(eq(streamId), anyString());
verify(webRTCClient, atLeastOnce()).reportError(eq(streamId), anyString());

}

Expand Down

0 comments on commit 7e7ca08

Please sign in to comment.