Skip to content

Commit 80b9f55

Browse files
Don't run remote tests in CI (#9207)
Co-authored-by: Jesse Wilson <jwilson@squareup.com>
1 parent 5b23df7 commit 80b9f55

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

android-test/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,9 @@ dependencies {
111111
androidTestImplementation(libs.junit5android.core)
112112
androidTestRuntimeOnly(libs.junit5android.runner)
113113
}
114+
115+
junitPlatform {
116+
filters {
117+
excludeTags("Remote")
118+
}
119+
}

android-test/src/androidTest/java/okhttp/android/test/SingleAndroidTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import okhttp3.ConnectionPool
2323
import okhttp3.OkHttpClient
2424
import okhttp3.Request
2525
import okhttp3.tls.internal.TlsUtil.localhost
26-
import org.junit.Test
26+
import org.junit.jupiter.api.Test
2727

2828
/**
2929
* This single Junit 4 test is our Android test suite on API 21-25.

android-test/src/androidTest/java/okhttp/android/test/StrictModeTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ import okhttp3.HttpUrl.Companion.toHttpUrl
2727
import okhttp3.OkHttpClient
2828
import okhttp3.Request
2929
import okhttp3.internal.platform.Platform
30-
import org.junit.After
31-
import org.junit.Test
30+
import org.junit.jupiter.api.AfterEach
31+
import org.junit.jupiter.api.Test
3232
import org.junit.jupiter.api.parallel.Isolated
3333

3434
@Isolated
3535
@SdkSuppress(minSdkVersion = 28)
3636
class StrictModeTest {
3737
private val violations = mutableListOf<Violation>()
3838

39-
@After
39+
@AfterEach
4040
fun cleanup() {
4141
StrictMode.setThreadPolicy(
4242
ThreadPolicy

0 commit comments

Comments
 (0)