Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk committed Oct 11, 2023
1 parent 73aa2e2 commit 21dd96f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 8 additions & 3 deletions network/src/commonTest/kotlin/com/wire/kalium/api/ApiTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import com.wire.kalium.network.UnboundNetworkClient
import com.wire.kalium.network.api.v0.authenticated.AccessTokenApiV0
import com.wire.kalium.network.api.v0.authenticated.networkContainer.AuthenticatedNetworkContainerV0
import com.wire.kalium.network.api.v0.unauthenticated.networkContainer.UnauthenticatedNetworkContainerV0
import com.wire.kalium.network.kaliumLogger
import com.wire.kalium.network.networkContainer.KaliumUserAgentProvider
import com.wire.kalium.network.serialization.JoseJson
import com.wire.kalium.network.serialization.XProtoBuf
Expand Down Expand Up @@ -113,6 +114,7 @@ internal abstract class ApiTest {
engine = mockEngine,
sessionManager = TEST_SESSION_MANAGER,
networkStateObserver = networkStateObserver,
kaliumLogger = kaliumLogger
).networkClient
}

Expand All @@ -125,7 +127,8 @@ internal abstract class ApiTest {
return AuthenticatedNetworkContainerV0(
engine = mockEngine,
sessionManager = TEST_SESSION_MANAGER,
networkStateObserver = networkStateObserver
networkStateObserver = networkStateObserver,
kaliumLogger = kaliumLogger
).websocketClient
}

Expand All @@ -142,7 +145,8 @@ internal abstract class ApiTest {
engine = mockEngine,
serverConfigDTO = TEST_SESSION_MANAGER.serverConfig(),
bearerAuthProvider = TEST_BEARER_AUTH_PROVIDER,
networkStateObserver = networkStateObserver
networkStateObserver = networkStateObserver,
kaliumLogger = kaliumLogger
)
}

Expand Down Expand Up @@ -244,7 +248,8 @@ internal abstract class ApiTest {
return AuthenticatedNetworkContainerV0(
engine = mockEngine,
sessionManager = TEST_SESSION_MANAGER,
networkStateObserver = networkStateObserver
networkStateObserver = networkStateObserver,
kaliumLogger = kaliumLogger
).networkClient
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import com.wire.kalium.network.api.base.model.RefreshTokenDTO
import com.wire.kalium.network.api.base.model.SessionDTO
import com.wire.kalium.network.api.v0.authenticated.AccessTokenApiV0
import com.wire.kalium.network.api.v0.authenticated.AssetApiV0
import com.wire.kalium.network.kaliumLogger
import com.wire.kalium.network.networkContainer.KaliumUserAgentProvider
import com.wire.kalium.network.session.SessionManager
import com.wire.kalium.network.session.installAuth
Expand Down Expand Up @@ -168,7 +169,7 @@ class SessionManagerTest {
}

val client = AuthenticatedNetworkClient(
DEFAULT_TEST_NETWORK_STATE_OBSERVER, mockEngine, sessionManager.serverConfig(), bearerAuthProvider, false
DEFAULT_TEST_NETWORK_STATE_OBSERVER, mockEngine, sessionManager.serverConfig(), bearerAuthProvider, kaliumLogger, false
)
val assetApi = AssetApiV0(client)
val kaliumFileSystem: FileSystem = FakeFileSystem()
Expand Down

0 comments on commit 21dd96f

Please sign in to comment.