From b6ae3500abd786031c9d25aaf0793231a104e9fe Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Thu, 3 Dec 2026 11:11:06 -0500 Subject: [PATCH] test: DELIBERATE BREAK, expected red, reverted next (#8316) A certificate that fails to verify is no longer recognised, so the probe falls back to http past it. ServerProbeTest's certificate case must go red. Co-Authored-By: Claude Opus 5.5 --- .../src/main/java/com/fabledsword/minstrel/auth/ServerProbe.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/app/src/main/java/com/fabledsword/minstrel/auth/ServerProbe.kt b/android/app/src/main/java/com/fabledsword/minstrel/auth/ServerProbe.kt index 57d4d881..87c53724 100644 --- a/android/app/src/main/java/com/fabledsword/minstrel/auth/ServerProbe.kt +++ b/android/app/src/main/java/com/fabledsword/minstrel/auth/ServerProbe.kt @@ -15,7 +15,6 @@ import okhttp3.Request import okhttp3.Response import java.io.IOException import java.net.UnknownHostException -import java.security.GeneralSecurityException import java.util.concurrent.TimeUnit import javax.inject.Inject import javax.net.ssl.SSLPeerUnverifiedException @@ -154,7 +153,7 @@ class ServerProbe internal constructor(client: OkHttpClient, callTimeoutMillis: private fun isCertificateFailure(e: IOException): Boolean = generateSequence(e) { it.cause } .take(MAX_CAUSE_DEPTH) - .any { it is SSLPeerUnverifiedException || it is GeneralSecurityException } + .any { it is SSLPeerUnverifiedException } private suspend fun Call.await(): Response = suspendCancellableCoroutine { continuation ->