From 1fc018909baab824196f3a5cc997cdd1b9ee2341 Mon Sep 17 00:00:00 2001 From: cach30verfl0w Date: Fri, 14 Jun 2024 20:03:36 +0200 Subject: [PATCH] Fix error in tests --- .../io/karma/advcrypto/linux/tests/KeyReaderHelperTests.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kmp-advcrypto/src/linuxX64Test/kotlin/io/karma/advcrypto/linux/tests/KeyReaderHelperTests.kt b/kmp-advcrypto/src/linuxX64Test/kotlin/io/karma/advcrypto/linux/tests/KeyReaderHelperTests.kt index cdb8b15..ea8f8c1 100644 --- a/kmp-advcrypto/src/linuxX64Test/kotlin/io/karma/advcrypto/linux/tests/KeyReaderHelperTests.kt +++ b/kmp-advcrypto/src/linuxX64Test/kotlin/io/karma/advcrypto/linux/tests/KeyReaderHelperTests.kt @@ -10,11 +10,10 @@ import okio.Path.Companion.toPath import kotlin.experimental.ExperimentalNativeApi import kotlin.test.Test -@OptIn(ExperimentalNativeApi::class) +@OptIn(ExperimentalNativeApi::class, InsecureCryptoApi::class) class KeyReaderHelperTests { private val fileSystem = FileSystem.SYSTEM - - @OptIn(InsecureCryptoApi::class) + @Test fun testPEM() { fileSystem.read("./testkeys/rsa-private-key.pem".toPath()) {