Skip to content

Commit

Permalink
Increase websockets test timeout
Browse files Browse the repository at this point in the history
Usually these tests in CI complete in ~150ms but sometimes there are spikes when it takes seconds. So timeout of 2 seconds is too strict and it fails from time to time.
  • Loading branch information
Sergey Mashkov committed Feb 4, 2020
1 parent 1abef7a commit ab0ca11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import kotlin.test.*

class DefaultWebSocketTest {
@get:Rule
val timeout: CoroutinesTimeout = CoroutinesTimeout.seconds(2, true)
val timeout: CoroutinesTimeout = CoroutinesTimeout.seconds(10, true)

private lateinit var parent: CompletableJob
private lateinit var client2server: ByteChannel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import kotlin.test.*

class RawWebSocketTest {
@get:Rule
val timeout: CoroutinesTimeout = CoroutinesTimeout.seconds(2, true)
val timeout: CoroutinesTimeout = CoroutinesTimeout.seconds(10, true)

@get:Rule
val test: TestName = TestName()
Expand Down

0 comments on commit ab0ca11

Please sign in to comment.