Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
liviu-timar committed Dec 17, 2024
1 parent d62f70b commit e049919
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit e049919

Please sign in to comment.