diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-22 17:21:55 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-22 17:21:55 +0200 |
commit | e8e91d2fdb7f680eea4c74ec504bb53a4a9b0325 (patch) | |
tree | 79498338826c779e8ac93015f70e4b5568c90c41 /sw-server | |
parent | Fix transparency of callout component by wrapping in card (diff) | |
download | seven-wonders-e8e91d2fdb7f680eea4c74ec504bb53a4a9b0325.tar.gz seven-wonders-e8e91d2fdb7f680eea4c74ec504bb53a4a9b0325.tar.bz2 seven-wonders-e8e91d2fdb7f680eea4c74ec504bb53a4a9b0325.zip |
Add debug statements
Diffstat (limited to 'sw-server')
-rw-r--r-- | sw-server/src/test/kotlin/org/luxons/sevenwonders/server/SevenWondersTest.kt | 11 |
1 files changed, 10 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 90fd7df1..dfa55719 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 @@ -48,21 +48,30 @@ class SevenWondersTest { @Test fun lobbySubscription_ignoredForOutsiders() = runAsyncTest { + System.err.println("before new player owner") val ownerSession = newPlayer("GameOwner") + System.err.println("before new player 1") val session1 = newPlayer("Player1") + System.err.println("before new player 2") val session2 = newPlayer("Player2") val gameName = "Test Game" + System.err.println("before create game") val lobby = ownerSession.createGame(gameName) + System.err.println("before join game 1") session1.joinGame(lobby.id) + System.err.println("before join game 2") session2.joinGame(lobby.id) + System.err.println("before new outsider player") val outsiderSession = newPlayer("Outsider") val started = launch { outsiderSession.awaitGameStart(lobby.id) } + System.err.println("before start game") ownerSession.startGame() - val nothing = withTimeoutOrNull(30) { started.join() } + val nothing = withTimeoutOrNull(50) { started.join() } assertNull(nothing) started.cancel() + System.err.println("before disconnect") disconnect(ownerSession, session1, session2, outsiderSession) } |