Fix tests

This commit is contained in:
2025-04-14 23:40:19 +02:00
parent 080ea1245d
commit cb3ec3f96c
3 changed files with 13 additions and 6 deletions
@@ -82,9 +82,6 @@ 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
@@ -95,6 +92,9 @@ 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)