summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-25 01:12:38 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-25 01:19:49 +0200
commit958cd16fe1fd7b03e02bea6f8e87bd1badd1cf7f (patch)
tree8080cc64b78982a7cc678340a493f620a8731bc5
parentFix docker image name (diff)
downloadseven-wonders-958cd16fe1fd7b03e02bea6f8e87bd1badd1cf7f.tar.gz
seven-wonders-958cd16fe1fd7b03e02bea6f8e87bd1badd1cf7f.tar.bz2
seven-wonders-958cd16fe1fd7b03e02bea6f8e87bd1badd1cf7f.zip
Increase test timeout to make sure it's not about time
-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 7bbd6158..e4921ab4 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 = 5000, block: suspend CoroutineScope.() -> Unit) = runBlocking {
+fun runAsyncTest(timeoutMillis: Long = 10000, block: suspend CoroutineScope.() -> Unit) = runBlocking {
val result = withTimeoutOrNull(timeoutMillis, block)
assertNotNull(result, "Test timed out, exceeded ${timeoutMillis}ms")
}
bgstack15