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 a8ca5325..4cc7ca66 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 @@ -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; @@ -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()); }