summaryrefslogtreecommitdiff
path: root/sw-server/src
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-21 12:36:28 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-21 14:51:15 +0200
commit7cb9f3eb1785d0927287fa170e47d5dcb8ff4625 (patch)
tree00f789f6f0440451cab572ee11dd75e4422580c8 /sw-server/src
parentAllow custom player icons (diff)
downloadseven-wonders-7cb9f3eb1785d0927287fa170e47d5dcb8ff4625.tar.gz
seven-wonders-7cb9f3eb1785d0927287fa170e47d5dcb8ff4625.tar.bz2
seven-wonders-7cb9f3eb1785d0927287fa170e47d5dcb8ff4625.zip
Increase test timeout
Diffstat (limited to 'sw-server/src')
-rw-r--r--sw-server/src/test/kotlin/org/luxons/sevenwonders/server/test/TestUtils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/test/TestUtils.kt b/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/test/TestUtils.kt
index 7a962368..7bbd6158 100644
--- a/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/test/TestUtils.kt
+++ b/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/test/TestUtils.kt
@@ -13,7 +13,7 @@ fun mockSimpMessagingTemplate(): SimpMessagingTemplate = SimpMessagingTemplate(o
override fun send(message: Message<*>, timeout: Long): Boolean = true
})
-fun runAsyncTest(timeoutMillis: Long = 3000, block: suspend CoroutineScope.() -> Unit) = runBlocking {
+fun runAsyncTest(timeoutMillis: Long = 5000, block: suspend CoroutineScope.() -> Unit) = runBlocking {
val result = withTimeoutOrNull(timeoutMillis, block)
assertNotNull(result, "Test timed out, exceeded ${timeoutMillis}ms")
}
bgstack15