You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vpnmanager/vpnservicemanager/src/main/java/com/kape/vpnservicemanager/domain/controllers/StartConnectionController.kt
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,14 @@ internal class StartConnectionController(
Copy file name to clipboardExpand all lines: vpnmanager/vpnservicemanager/src/test/java/com/kape/vpnservicemanager/domain/controllers/StartConnectionControllerTest.kt
+41-1Lines changed: 41 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,7 @@ internal class StartConnectionControllerTest {
127
127
}
128
128
129
129
@Test
130
-
fun`fail to start when there is a service present`() = runTest {
130
+
fun`start successfully when there is a service present and stop succeeds`() = runTest {
131
131
// given
132
132
val context:Context=ApplicationProvider.getApplicationContext()
133
133
val protocolConfiguration:VPNServiceManagerConfiguration=
@@ -160,6 +160,46 @@ internal class StartConnectionControllerTest {
160
160
// when
161
161
val result = startConnectionController(protocolConfiguration = protocolConfiguration)
0 commit comments