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

@@ -13,6 +13,7 @@ import eventDemo.configuration.injection.appKoinModule
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.collections.shouldContain
import io.kotest.matchers.equals.shouldBeEqual
import io.mockk.mockk
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.channels.Channel
@@ -25,7 +26,7 @@ import kotlin.test.assertIs
class GameCommandHandlerTest :
FunSpec({
test("handle a command should execute the command") {
koinApplication { modules(appKoinModule) }.koin.apply {
koinApplication { modules(appKoinModule(mockk(relaxed = true))) }.koin.apply {
val commandHandler by inject<GameCommandHandler>()
val notificationListener by inject<PlayerNotificationListener>()
val gameId = GameId()