summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2020-11-28 11:49:46 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2020-11-29 11:35:47 +0100
commit6b934984e830e1f11c6b9761ddc636d5cdcf28e6 (patch)
treeb3164401db9ad87bb6fc8ff3a6d70043fdceccec
parentFix score board deserialization (diff)
downloadseven-wonders-6b934984e830e1f11c6b9761ddc636d5cdcf28e6.tar.gz
seven-wonders-6b934984e830e1f11c6b9761ddc636d5cdcf28e6.tar.bz2
seven-wonders-6b934984e830e1f11c6b9761ddc636d5cdcf28e6.zip
Add traces to startGame_3players test
This is to investigate the timeouts
-rw-r--r--sw-server/build.gradle.kts6
-rw-r--r--sw-server/src/test/kotlin/org/luxons/sevenwonders/server/SevenWondersTest.kt7
2 files changed, 12 insertions, 1 deletions
diff --git a/sw-server/build.gradle.kts b/sw-server/build.gradle.kts
index 96990dc7..3d2c3477 100644
--- a/sw-server/build.gradle.kts
+++ b/sw-server/build.gradle.kts
@@ -39,3 +39,9 @@ tasks.processResources {
}
// make sure we build the frontend before creating the jar
tasks.processResources.get().dependsOn(":sw-ui:assemble")
+
+tasks.withType<Test> {
+ testLogging {
+ showStandardStreams = true
+ }
+}
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 2518a735..92a20bec 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
@@ -108,12 +108,17 @@ class SevenWondersTest {
}
@Test
- fun startGame_3players() = runAsyncTest {
+ fun startGame_3players() = runAsyncTest(30000) {
+ println("startGame_3players: START")
val session1 = newPlayer("Player1")
+ println("startGame_3players: after player 1")
val session2 = newPlayer("Player2")
+ println("startGame_3players: after player 2")
val lobby = session1.createGame("Test Game")
+ println("startGame_3players: after player 1 creates game")
session2.joinGame(lobby.id)
+ println("startGame_3players: after player 2 joins game")
val session3 = newPlayer("Player3")
session3.joinGame(lobby.id)
bgstack15