test: fix GameSimulationTest test

This commit is contained in:
2025-04-10 23:35:03 +02:00
parent ea18aabdec
commit 7ff35c0119

View File

@@ -86,6 +86,9 @@ class GameSimulationTest :
assertIs<CommandSuccessNotification>(it).commandId shouldBeEqual sendCommand.id
}
}
channelNotification1.receive().let {
assertIs<PlayerWasReadyNotification>(it).player shouldBeEqual player2
}
val player1Hand =
channelNotification1.receive().let {
assertIs<TheGameWasStartedNotification>(it).hand shouldHaveSize 7
@@ -96,9 +99,6 @@ class GameSimulationTest :
player shouldBeEqual player1
}
}
channelNotification1.receive().let {
assertIs<PlayerWasReadyNotification>(it).player shouldBeEqual player2
}
IWantToPlayCardCommand(IWantToPlayCardCommand.Payload(gameId, player1, player1Hand.first())).also { sendCommand ->
channelCommand1.send(sendCommand)