Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-mullvad committed Aug 27, 2024
1 parent 4f97167 commit d470b22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ class CustomListLocationsViewModelTest {
Provider(
ProviderId("Provider"),
ownership = Ownership.MullvadOwned
)
),
daita = false
)
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ class VpnSettingsViewModelTest {
val mockTunnelOptions: TunnelOptions = mockk(relaxed = true)
// Can not use a mock here since mocking a value class val leads to class cast exception
val mockWireguardTunnelOptions =
WireguardTunnelOptions(mtu = Mtu(0), quantumResistant = expectedResistantState)
WireguardTunnelOptions(
mtu = Mtu(0),
quantumResistant = expectedResistantState,
daita = false
)

every { mockSettings.tunnelOptions } returns mockTunnelOptions
every { mockTunnelOptions.wireguard } returns mockWireguardTunnelOptions
Expand Down

0 comments on commit d470b22

Please sign in to comment.