Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
burak-58 committed Nov 23, 2023
1 parent 17052a6 commit 01f7c47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -901,12 +901,12 @@ public void testCreatePeerConnection() {
doNothing().when(webRTCClient).createMediaConstraintsInternal();
doNothing().when(webRTCClient).createPeerConnectionInternal(streamId);
doNothing().when(webRTCClient).maybeCreateAndStartRtcEventLog(streamId);
doNothing().when(webRTCClient).reportError(anyString(), anyString());

webRTCClient.createPeerConnection(streamId);

verify(webRTCClient, never()).reportError(eq(streamId), anyString());

doNothing().when(webRTCClient).reportError(anyString(), anyString());
doThrow(new NullPointerException()).when(webRTCClient).createMediaConstraintsInternal();
webRTCClient.createPeerConnection(streamId);
verify(webRTCClient, timeout(10000)).reportError(eq(streamId), anyString());
Expand Down

0 comments on commit 01f7c47

Please sign in to comment.