Skip to content

Commit 1ad7d9b

Browse files
committed
Fix
1 parent 827133d commit 1ad7d9b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import com.pcapplusplus.toyvpn.ui.theme.ToyVpnPcapPlusPlusTheme
2020
import io.mockk.every
2121
import io.mockk.mockk
2222
import io.mockk.verify
23-
import org.junit.Assert.assertEquals
23+
import org.junit.Assert.assertTrue
2424
import org.junit.Before
2525
import org.junit.Rule
2626
import org.junit.Test
@@ -228,7 +228,10 @@ class StatsScreenTest {
228228
fun testVpnDisconnecting() {
229229
renderScreen(vpnConnectionState = VpnConnectionState.DISCONNECTING)
230230

231-
assertTrue("bla" == composeTestRule.onNodeWithText("Disconnecting...").printToString(), "BLA BLA: ${composeTestRule.onNodeWithText("Disconnecting...").printToString()}")
231+
assertTrue(
232+
"BLA BLA: ${composeTestRule.onNodeWithText("Disconnecting...").printToString()}",
233+
"bla" == composeTestRule.onNodeWithText("Disconnecting...").printToString(),
234+
)
232235

233236
composeTestRule.waitUntil(timeoutMillis = 10000) {
234237
try {

0 commit comments

Comments
 (0)