Skip to content

Commit f42479b

Browse files
committed
Try again
1 parent dab40be commit f42479b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,15 @@ class StatsScreenTest {
226226
@Test
227227
fun testVpnDisconnecting() {
228228
val vpnConnectionStateLiveData = MutableLiveData(VpnConnectionState.DISCONNECTING)
229+
val clientAddressLiveData = MutableLiveData("10.0.0.1")
230+
val topDnsDomainsLiveData = MutableLiveData<List<DomainData>>()
231+
val topTlsServerNamesLiveData = MutableLiveData<List<DomainData>>()
232+
229233
every { mockViewModel.vpnConnectionState } returns vpnConnectionStateLiveData
234+
every { mockViewModel.clientAddress } returns clientAddressLiveData
235+
every { mockViewModel.topDnsDomains } returns topDnsDomainsLiveData
236+
every { mockViewModel.topTlsServerNames } returns topTlsServerNamesLiveData
237+
230238
// renderScreen(vpnConnectionState = VpnConnectionState.DISCONNECTING)
231239

232240
composeTestRule.setContent {

0 commit comments

Comments
 (0)