add missing @OptIn

This commit is contained in:
2025-04-11 01:03:58 +02:00
parent 2e441bdbf6
commit 02192cf33b
3 changed files with 6 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ import eventDemo.business.event.projection.gameState.GameStateRepository
import eventDemo.testKoinApplicationWithConfig import eventDemo.testKoinApplicationWithConfig
import io.kotest.assertions.nondeterministic.eventually import io.kotest.assertions.nondeterministic.eventually
import io.kotest.assertions.nondeterministic.eventuallyConfig import io.kotest.assertions.nondeterministic.eventuallyConfig
import io.kotest.common.KotestInternal
import io.kotest.core.spec.style.FunSpec import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.collections.shouldHaveSize import io.kotest.matchers.collections.shouldHaveSize
import io.kotest.matchers.equals.shouldBeEqual import io.kotest.matchers.equals.shouldBeEqual
@@ -21,7 +22,7 @@ import kotlinx.coroutines.launch
import kotlin.test.assertNotNull import kotlin.test.assertNotNull
import kotlin.time.Duration.Companion.seconds import kotlin.time.Duration.Companion.seconds
@OptIn(DelicateCoroutinesApi::class) @OptIn(DelicateCoroutinesApi::class, KotestInternal::class)
class GameStateRepositoryTest : class GameStateRepositoryTest :
FunSpec({ FunSpec({
tags(Tag.Postgresql) tags(Tag.Postgresql)

View File

@@ -2,6 +2,7 @@ package eventDemo.libs.event
import eventDemo.Tag import eventDemo.Tag
import eventDemo.testKoinApplicationWithConfig import eventDemo.testKoinApplicationWithConfig
import io.kotest.common.KotestInternal
import io.kotest.core.spec.style.FunSpec import io.kotest.core.spec.style.FunSpec
import io.kotest.datatest.withData import io.kotest.datatest.withData
import io.kotest.matchers.collections.shouldHaveSize import io.kotest.matchers.collections.shouldHaveSize
@@ -16,7 +17,7 @@ import org.junit.jupiter.api.assertThrows
import org.koin.core.Koin import org.koin.core.Koin
import kotlin.test.assertNotNull import kotlin.test.assertNotNull
@DelicateCoroutinesApi @OptIn(KotestInternal::class, DelicateCoroutinesApi::class)
class EventStreamTest : class EventStreamTest :
FunSpec({ FunSpec({
tags(Tag.Postgresql) tags(Tag.Postgresql)

View File

@@ -1,6 +1,7 @@
package eventDemo.libs.event package eventDemo.libs.event
import eventDemo.Tag import eventDemo.Tag
import io.kotest.common.KotestInternal
import io.kotest.core.spec.style.FunSpec import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.equals.shouldBeEqual import io.kotest.matchers.equals.shouldBeEqual
import kotlinx.coroutines.DelicateCoroutinesApi import kotlinx.coroutines.DelicateCoroutinesApi
@@ -8,7 +9,7 @@ import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.joinAll import kotlinx.coroutines.joinAll
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
@OptIn(DelicateCoroutinesApi::class) @OptIn(DelicateCoroutinesApi::class, KotestInternal::class)
class VersionBuilderLocalTest : class VersionBuilderLocalTest :
FunSpec({ FunSpec({