Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Aug 21, 2024
1 parent 6d9cc55 commit 7e83d40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ import arrow.core.Either
import arrow.core.raise.either
import arrow.core.raise.ensure
import kotlinx.coroutines.flow.combine
import mullvad_daemon.management_interface.location
import net.mullvad.mullvadvpn.lib.daemon.grpc.ManagementService
import net.mullvad.mullvadvpn.lib.model.ConnectError
import net.mullvad.mullvadvpn.lib.model.GeoIpLocation
import net.mullvad.mullvadvpn.lib.model.TunnelState
import net.mullvad.mullvadvpn.lib.model.location

class ConnectionProxy(
private val managementService: ManagementService,
private val translationRepository: RelayLocationTranslationRepository,
translationRepository: RelayLocationTranslationRepository,
private val vpnPermissionRepository: VpnPermissionRepository
) {
val tunnelState =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ class ConnectionProxyTest {

private val mockManagementService: ManagementService = mockk(relaxed = true)
private val mockVpnPermissionRepository: VpnPermissionRepository = mockk()
private val mockTranslationRepository: RelayLocationTranslationRepository =
mockk(relaxed = true)

private val connectionProxy: ConnectionProxy =
ConnectionProxy(
managementService = mockManagementService,
vpnPermissionRepository = mockVpnPermissionRepository
vpnPermissionRepository = mockVpnPermissionRepository,
translationRepository = mockTranslationRepository
)

@Test
Expand Down

0 comments on commit 7e83d40

Please sign in to comment.