summaryrefslogtreecommitdiff
path: root/sw-server/src/test/kotlin/org/luxons
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-02-13 16:45:33 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-02-13 16:45:33 +0100
commit6afecee45d8e46b695f7f22894fef3effc15a2b7 (patch)
tree88865b84e8cb829cc1294b7a04dc18928145c7b7 /sw-server/src/test/kotlin/org/luxons
parentRemove unnecessary settings param (diff)
downloadseven-wonders-6afecee45d8e46b695f7f22894fef3effc15a2b7.tar.gz
seven-wonders-6afecee45d8e46b695f7f22894fef3effc15a2b7.tar.bz2
seven-wonders-6afecee45d8e46b695f7f22894fef3effc15a2b7.zip
Rename some client functions
Diffstat (limited to 'sw-server/src/test/kotlin/org/luxons')
-rw-r--r--sw-server/src/test/kotlin/org/luxons/sevenwonders/server/SevenWondersTest.kt14
1 files changed, 7 insertions, 7 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 51daf0c8..4d76d7b8 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
@@ -8,8 +8,8 @@ import kotlinx.coroutines.withTimeoutOrNull
import org.junit.runner.RunWith
import org.luxons.sevenwonders.client.SevenWondersClient
import org.luxons.sevenwonders.client.SevenWondersSession
-import org.luxons.sevenwonders.client.createGameAndWaitLobby
-import org.luxons.sevenwonders.client.joinGameAndWaitLobby
+import org.luxons.sevenwonders.client.createGameAndAwaitLobby
+import org.luxons.sevenwonders.client.joinGameAndAwaitLobby
import org.luxons.sevenwonders.model.Action
import org.luxons.sevenwonders.model.api.GameListEvent
import org.luxons.sevenwonders.model.api.LobbyDTO
@@ -61,8 +61,8 @@ class SevenWondersTest {
val lobby = ownerSession.createGameWithLegacySettingsAndWaitLobby(gameName)
- session1.joinGameAndWaitLobby(lobby.id)
- session2.joinGameAndWaitLobby(lobby.id)
+ session1.joinGameAndAwaitLobby(lobby.id)
+ session2.joinGameAndAwaitLobby(lobby.id)
val outsiderSession = newPlayer("Outsider")
val gameStartedEvents = outsiderSession.watchGameStarted()
@@ -116,12 +116,12 @@ class SevenWondersTest {
val lobby = session1.createGameWithLegacySettingsAndWaitLobby("Test Game")
val startEvents2 = session2.watchGameStarted()
- session2.joinGameAndWaitLobby(lobby.id)
+ session2.joinGameAndAwaitLobby(lobby.id)
// player 3 connects after game creation (on purpose)
val session3 = newPlayer("Player3")
val startEvents3 = session3.watchGameStarted()
- session3.joinGameAndWaitLobby(lobby.id)
+ session3.joinGameAndAwaitLobby(lobby.id)
session1.startGame()
@@ -146,7 +146,7 @@ class SevenWondersTest {
}
private suspend fun SevenWondersSession.createGameWithLegacySettingsAndWaitLobby(gameName: String): LobbyDTO {
- val lobby = createGameAndWaitLobby(gameName)
+ val lobby = createGameAndAwaitLobby(gameName)
updateSettings(lobby.settings.copy(askForReadiness = true))
return lobby
}
bgstack15