diff --git a/webrtc-android-framework/src/test/java/io/antmedia/webrtcandroidframework/WebRTCClientTest.java b/webrtc-android-framework/src/test/java/io/antmedia/webrtcandroidframework/WebRTCClientTest.java index bc6eb2ca..341705d8 100644 --- a/webrtc-android-framework/src/test/java/io/antmedia/webrtcandroidframework/WebRTCClientTest.java +++ b/webrtc-android-framework/src/test/java/io/antmedia/webrtcandroidframework/WebRTCClientTest.java @@ -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());