Skip to content

Commit

Permalink
Fixes mozilla-mobile#4825: restore network connection after noNetwork…
Browse files Browse the repository at this point in the history
…ConnectionErrorPageTest
  • Loading branch information
Oana Horvath authored and mergify[bot] committed Apr 27, 2021
1 parent 6279adb commit 40b2431
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package org.mozilla.focus.activity

import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import org.junit.After
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
Expand All @@ -19,6 +20,11 @@ class ErrorPagesTest {
@get: Rule
val mActivityTestRule = MainActivityFirstrunTestRule(showFirstRun = false)

@After
fun tearDown() {
setNetworkEnabled(true)
}

@Test
fun badURLCheckTest() {
val badURl = "bad.url"
Expand Down

0 comments on commit 40b2431

Please sign in to comment.