Create PlayerNotificationListenerTest

This commit is contained in:
2025-03-18 22:43:08 +01:00
parent c762f31449
commit c28bc00679
5 changed files with 41 additions and 7 deletions

View File

@@ -34,10 +34,9 @@ class GameCommandHandlerTest :
val channelNotification = Channel<Notification>(Channel.BUFFERED)
ReactionListener(get(), get()).init()
notificationListener.startListening(
{ channelNotification.trySendBlocking(it) },
player,
gameId,
)
) { channelNotification.trySendBlocking(it) }
GlobalScope.launch {
commandHandler.handle(