test: fix GameSimulationTest test
This commit is contained in:
@@ -86,6 +86,9 @@ class GameSimulationTest :
|
|||||||
assertIs<CommandSuccessNotification>(it).commandId shouldBeEqual sendCommand.id
|
assertIs<CommandSuccessNotification>(it).commandId shouldBeEqual sendCommand.id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
channelNotification1.receive().let {
|
||||||
|
assertIs<PlayerWasReadyNotification>(it).player shouldBeEqual player2
|
||||||
|
}
|
||||||
val player1Hand =
|
val player1Hand =
|
||||||
channelNotification1.receive().let {
|
channelNotification1.receive().let {
|
||||||
assertIs<TheGameWasStartedNotification>(it).hand shouldHaveSize 7
|
assertIs<TheGameWasStartedNotification>(it).hand shouldHaveSize 7
|
||||||
@@ -96,9 +99,6 @@ class GameSimulationTest :
|
|||||||
player shouldBeEqual player1
|
player shouldBeEqual player1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
channelNotification1.receive().let {
|
|
||||||
assertIs<PlayerWasReadyNotification>(it).player shouldBeEqual player2
|
|
||||||
}
|
|
||||||
|
|
||||||
IWantToPlayCardCommand(IWantToPlayCardCommand.Payload(gameId, player1, player1Hand.first())).also { sendCommand ->
|
IWantToPlayCardCommand(IWantToPlayCardCommand.Payload(gameId, player1, player1Hand.first())).also { sendCommand ->
|
||||||
channelCommand1.send(sendCommand)
|
channelCommand1.send(sendCommand)
|
||||||
|
|||||||
Reference in New Issue
Block a user