summaryrefslogtreecommitdiff
path: root/sw-server/src/test/kotlin/org/luxons
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2020-12-06 18:00:41 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2020-12-06 18:30:50 +0100
commit6ece57a1bfbedf1bcc5a97a9d337d74a4da7065f (patch)
tree1f20716bf41832495d8b1c45af28e628df83c37b /sw-server/src/test/kotlin/org/luxons
parentUpgrade to krossbow 1.1.2 to fix UTF-8 bugs (diff)
downloadseven-wonders-6ece57a1bfbedf1bcc5a97a9d337d74a4da7065f.tar.gz
seven-wonders-6ece57a1bfbedf1bcc5a97a9d337d74a4da7065f.tar.bz2
seven-wonders-6ece57a1bfbedf1bcc5a97a9d337d74a4da7065f.zip
More traces for startGame_3players test
Diffstat (limited to 'sw-server/src/test/kotlin/org/luxons')
-rw-r--r--sw-server/src/test/kotlin/org/luxons/sevenwonders/server/SevenWondersTest.kt10
1 files changed, 9 insertions, 1 deletions
diff --git a/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/SevenWondersTest.kt b/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/SevenWondersTest.kt
index 92a20bec..4d0b19f4 100644
--- a/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/SevenWondersTest.kt
+++ b/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/SevenWondersTest.kt
@@ -123,16 +123,24 @@ class SevenWondersTest {
val session3 = newPlayer("Player3")
session3.joinGame(lobby.id)
- listOf(session1, session2, session3).forEach { session ->
+ listOf(session1, session2, session3).forEachIndexed { i, session ->
launch {
+ println("startGame_3players [launch ${i + 1}] awaiting game start...")
session.awaitGameStart(lobby.id)
+ println("startGame_3players [launch ${i + 1}] game started, watching turns")
val turns = session.watchTurns().produceIn(this)
+ println("startGame_3players [launch ${i + 1}] saying ready...")
session.sayReady()
+ println("startGame_3players [launch ${i + 1}] ready, receiving first turn...")
val turn = turns.receive()
assertNotNull(turn)
+ println("startGame_3players [launch ${i + 1}] turn OK, disconnecting...")
session.disconnect()
+ println("startGame_3players [launch ${i + 1}] disconnected")
}
}
+ println("startGame_3players: player 1 starting the game...")
session1.startGame()
+ println("startGame_3players: end of test method (main body)")
}
}
bgstack15