Skip to content

Commit c9313a1

Browse files
committed
Add timeout to verify in testDisconnectVpn
1 parent 89a1a26 commit c9313a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/androidTest/java/com/pcapplusplus/toyvpn/ToyVpnViewModelTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class ToyVpnViewModelTest {
7676

7777
viewModel.disconnectVpn()
7878

79-
verify { mockVpnServiceManager.stopVpnService() }
79+
verify(timeout = 10000) { mockVpnServiceManager.stopVpnService() }
8080

8181
assertEquals(1, viewModel.ipv4PacketCount.value)
8282
}

0 commit comments

Comments
 (0)