Skip to content

Commit f63ea4a

Browse files
committed
Fix ErrorInfoTest after changes to exception classifications
1 parent abf9a80 commit f63ea4a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

app/src/androidTest/java/org/schabi/newpipe/error/ErrorInfoTest.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import androidx.test.filters.LargeTest
99
import java.io.IOException
1010
import java.net.SocketTimeoutException
1111
import org.junit.Assert.assertEquals
12-
import org.junit.Assert.assertFalse
1312
import org.junit.Assert.assertNull
1413
import org.junit.Assert.assertTrue
1514
import org.junit.Test
@@ -25,7 +24,7 @@ import org.schabi.newpipe.extractor.exceptions.ReCaptchaException
2524
@RunWith(AndroidJUnit4::class)
2625
@LargeTest
2726
class ErrorInfoTest {
28-
private val context: Context by lazy { ApplicationProvider.getApplicationContext<Context>() }
27+
private val context: Context by lazy { ApplicationProvider.getApplicationContext() }
2928

3029
/**
3130
* @param errorInfo the error info to access
@@ -122,7 +121,7 @@ class ErrorInfoTest {
122121
)
123122
assertEquals(context.getString(R.string.recaptcha_request_toast), errorInfo.getMessage(context))
124123
assertEquals(url, errorInfo.recaptchaUrl)
125-
assertFalse(errorInfo.isReportable)
124+
assertTrue(errorInfo.isReportable)
126125
assertTrue(errorInfo.isRetryable)
127126
}
128127
}

0 commit comments

Comments
 (0)