Skip to content

Commit 6aa17b1

Browse files
committed
Fix tests
1 parent d86e6ee commit 6aa17b1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/src/androidTest/java/at/bitfire/cert4android/OkhttpTest.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ class OkhttpTest {
5959
// set cert4android TrustManager and HostnameVerifier
6060
val certManager = CustomCertManager(
6161
CustomCertStore.getInstance(context),
62-
trustSystemCerts = true,
63-
appInForeground = null
62+
object : SettingsProvider {
63+
override val appInForeground = null
64+
override val trustSystemCerts = true
65+
}
6466
)
6567

6668
val sslContext = SSLContext.getInstance("TLS")

0 commit comments

Comments
 (0)