From e049919dfe4fd9cddd81f676f6324f5a9b9a40de Mon Sep 17 00:00:00 2001 From: Liviu Timar <65943217+liviu-timar@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:05:47 +0200 Subject: [PATCH] Fix tests --- .../video/android/core/base/IntegrationTestBase.kt | 1 - .../io/getstream/video/android/core/rtc/RtcSessionTest.kt | 7 ------- 2 files changed, 8 deletions(-) diff --git a/stream-video-android-core/src/test/kotlin/io/getstream/video/android/core/base/IntegrationTestBase.kt b/stream-video-android-core/src/test/kotlin/io/getstream/video/android/core/base/IntegrationTestBase.kt index 441dee0daa..0d5e974657 100644 --- a/stream-video-android-core/src/test/kotlin/io/getstream/video/android/core/base/IntegrationTestBase.kt +++ b/stream-video-android-core/src/test/kotlin/io/getstream/video/android/core/base/IntegrationTestBase.kt @@ -106,7 +106,6 @@ open class IntegrationTestBase(val connectCoordinatorWS: Boolean = true) : TestB clientImpl = client as StreamVideoClient clientImpl.testSessionId = UUID.randomUUID().toString() // always mock the peer connection factory, it can't work in unit tests -// clientImpl.peerConnectionFactory = mockedPCFactory Call.testInstanceProvider.mediaManagerCreator = { mockk(relaxed = true) } Call.testInstanceProvider.rtcSessionCreator = { mockk(relaxed = true) } // Connect to the WS if needed diff --git a/stream-video-android-core/src/test/kotlin/io/getstream/video/android/core/rtc/RtcSessionTest.kt b/stream-video-android-core/src/test/kotlin/io/getstream/video/android/core/rtc/RtcSessionTest.kt index 3db5a8edcb..bc3d01f0b6 100644 --- a/stream-video-android-core/src/test/kotlin/io/getstream/video/android/core/rtc/RtcSessionTest.kt +++ b/stream-video-android-core/src/test/kotlin/io/getstream/video/android/core/rtc/RtcSessionTest.kt @@ -26,7 +26,6 @@ import io.getstream.video.android.core.model.StreamPeerType import io.getstream.video.android.core.utils.buildAudioConstraints import io.getstream.video.android.core.utils.buildMediaConstraints import kotlinx.coroutines.test.runTest -import org.junit.Before import org.junit.Ignore import org.junit.Test import org.junit.runner.RunWith @@ -44,12 +43,6 @@ class RtcSessionTest : IntegrationTestBase() { * Integration testing is already handled in other parts of the codebase */ - @Before - fun setup() { - // setup the mock - clientImpl.peerConnectionFactory = mockedPCFactory - } - @Test fun `Constraints`() = runTest { val mediaConstraints = buildMediaConstraints()