run checkSessionResumeShort only on Build.VERSION.SDK_INT >= 26

Let's Encrypt no longer works on Android older than SDK 26 #2102

https://letsencrypt.org/2020/11/06/own-two-feet.html
This commit is contained in:
Hans-Christoph Steiner
2024-04-05 12:18:15 +02:00
parent c448343009
commit 69f44d47bd

View File

@@ -100,6 +100,10 @@ internal class HttpManagerInstrumentationTest {
@Test
fun checkSessionResumeShort() = runSuspend {
assumeTrue(
"tlsprivacy.nervuri.net uses Let's Encrypt, which does not work on old Androids",
Build.VERSION.SDK_INT >= 26
)
val httpManager = HttpManager(userAgent, null)
val mirror = Mirror("https://tlsprivacy.nervuri.net")
val indexFile: IndexFile = getIndexFile("/json/v1")