diff --git a/network/src/commonTest/kotlin/com/wire/kalium/api/ApiTest.kt b/network/src/commonTest/kotlin/com/wire/kalium/api/ApiTest.kt index 878415ac3a0..ead2684fd9c 100644 --- a/network/src/commonTest/kotlin/com/wire/kalium/api/ApiTest.kt +++ b/network/src/commonTest/kotlin/com/wire/kalium/api/ApiTest.kt @@ -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 @@ -113,6 +114,7 @@ internal abstract class ApiTest { engine = mockEngine, sessionManager = TEST_SESSION_MANAGER, networkStateObserver = networkStateObserver, + kaliumLogger = kaliumLogger ).networkClient } @@ -125,7 +127,8 @@ internal abstract class ApiTest { return AuthenticatedNetworkContainerV0( engine = mockEngine, sessionManager = TEST_SESSION_MANAGER, - networkStateObserver = networkStateObserver + networkStateObserver = networkStateObserver, + kaliumLogger = kaliumLogger ).websocketClient } @@ -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 ) } @@ -244,7 +248,8 @@ internal abstract class ApiTest { return AuthenticatedNetworkContainerV0( engine = mockEngine, sessionManager = TEST_SESSION_MANAGER, - networkStateObserver = networkStateObserver + networkStateObserver = networkStateObserver, + kaliumLogger = kaliumLogger ).networkClient } diff --git a/network/src/commonTest/kotlin/com/wire/kalium/api/common/SessionManagerTest.kt b/network/src/commonTest/kotlin/com/wire/kalium/api/common/SessionManagerTest.kt index 1995b563a52..93e3d53ced7 100644 --- a/network/src/commonTest/kotlin/com/wire/kalium/api/common/SessionManagerTest.kt +++ b/network/src/commonTest/kotlin/com/wire/kalium/api/common/SessionManagerTest.kt @@ -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 @@ -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()