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 15, 2024
1 parent bb09501 commit 5e47ce1
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 5e47ce1

Please sign in to comment.