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()