From 7e7ca081cdb6788006453112b231c89675e0b12a Mon Sep 17 00:00:00 2001 From: Mustafa BOLEKEN Date: Mon, 2 Oct 2023 11:00:36 +0300 Subject: [PATCH] Update WebRTCClientTest.java --- .../io/antmedia/webrtcandroidframework/WebRTCClientTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); }