Add After to reset connection to online.

Change-Id: I71bc6279b4fc9fe12a4783d87b2ed43491cace04
pull/1296/head^2
Jaehwa Noh 1 year ago
parent 28268952ff
commit 5aa2a451b6

@ -72,6 +72,7 @@ import dagger.hilt.android.testing.HiltAndroidTest
import dagger.hilt.android.testing.HiltTestApplication import dagger.hilt.android.testing.HiltTestApplication
import kotlinx.coroutines.flow.first import kotlinx.coroutines.flow.first
import kotlinx.coroutines.runBlocking import kotlinx.coroutines.runBlocking
import org.junit.After
import org.junit.Before import org.junit.Before
import org.junit.Rule import org.junit.Rule
import org.junit.Test import org.junit.Test
@ -153,6 +154,11 @@ class SnackbarInsetsScreenshotTests {
TimeZone.setDefault(TimeZone.getTimeZone("UTC")) TimeZone.setDefault(TimeZone.getTimeZone("UTC"))
} }
@After
fun resetConnectionOnline() {
networkMonitor = TestNetworkMonitor().apply { setConnected(true) }
}
@Test @Test
fun phone_noSnackbar() { fun phone_noSnackbar() {
testSnackbarScreenshotWithSize( testSnackbarScreenshotWithSize(

Loading…
Cancel
Save