From 6b934984e830e1f11c6b9761ddc636d5cdcf28e6 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Sat, 28 Nov 2020 11:49:46 +0100 Subject: Add traces to startGame_3players test This is to investigate the timeouts --- sw-server/build.gradle.kts | 6 ++++++ .../test/kotlin/org/luxons/sevenwonders/server/SevenWondersTest.kt | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'sw-server') 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 { + 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) -- cgit