diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-25 01:12:38 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-25 01:19:49 +0200 |
commit | 958cd16fe1fd7b03e02bea6f8e87bd1badd1cf7f (patch) | |
tree | 8080cc64b78982a7cc678340a493f620a8731bc5 /sw-server/src/test | |
parent | Fix docker image name (diff) | |
download | seven-wonders-958cd16fe1fd7b03e02bea6f8e87bd1badd1cf7f.tar.gz seven-wonders-958cd16fe1fd7b03e02bea6f8e87bd1badd1cf7f.tar.bz2 seven-wonders-958cd16fe1fd7b03e02bea6f8e87bd1badd1cf7f.zip |
Increase test timeout to make sure it's not about time
Diffstat (limited to 'sw-server/src/test')
-rw-r--r-- | sw-server/src/test/kotlin/org/luxons/sevenwonders/server/test/TestUtils.kt | 2 |
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") } |