Skip to content

Commit 577ef43

Browse files
committed
chore: increase initial connection timeout on WS tests
1 parent 65a933e commit 577ef43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

completions/src/test/kotlin/lsp/ws/KotlinLspProxyWSTest.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import java.util.UUID
3535
import kotlin.test.Ignore
3636
import kotlin.test.assertTrue
3737
import kotlin.time.Duration
38+
import kotlin.time.Duration.Companion.minutes
3839
import kotlin.time.Duration.Companion.seconds
3940
import kotlin.time.toJavaDuration
4041

@@ -60,7 +61,7 @@ class KotlinLspProxyWSTest : CompletionTest, ImportTest {
6061
@BeforeAll
6162
fun setup() {
6263
client = TestWSClient({ baseWsUrl }, ReactorNettyWebSocketClient())
63-
client.connect(defaultTimeout)
64+
client.connect()
6465
}
6566

6667
override fun performCompletionChecks(
@@ -134,7 +135,7 @@ private class TestWSClient(
134135
private var connected = false
135136
private var subscription: Disposable? = null
136137

137-
fun connect(timeout: Duration) {
138+
fun connect(timeout: Duration = 2.minutes) {
138139
if (connected) return
139140
val connectMomo = client.execute(uriProvider()) { session ->
140141
val inbound = session.receive()

0 commit comments

Comments
 (0)