Configure redis for ktor/koin

This commit is contained in:
2025-03-19 00:30:35 +01:00
parent 6d2043d9fe
commit 8e732b0f9e
7 changed files with 30 additions and 10 deletions

View File

@@ -27,6 +27,7 @@ import eventDemo.libs.event.projection.ProjectionSnapshotRepositoryInMemory
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.collections.shouldHaveSize
import io.kotest.matchers.equals.shouldBeEqual
import io.mockk.mockk
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
@@ -170,7 +171,7 @@ class GameSimulationTest :
}
}
koinApplication { modules(appKoinModule) }.koin.apply {
koinApplication { modules(appKoinModule(mockk(relaxed = true))) }.koin.apply {
val commandHandler by inject<GameCommandHandler>()
val eventStore by inject<GameEventStore>()
val playerNotificationListener by inject<PlayerNotificationListener>()