Skip to content

Commit d7401d8

Browse files
committed
Replace stopSuspend and startSuspend with synchronous stop and start in WebSocketIntegrationTest.
1 parent 657490a commit d7401d8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

kotlin-sdk-test/src/jvmTest/kotlin/io/modelcontextprotocol/kotlin/sdk/integration/kotlin/websocket/WebSocketIntegrationTest.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class WebSocketIntegrationTest {
4545
}
4646
} finally {
4747
client?.close()
48-
server?.stopSuspend(1000, 2000)
48+
server?.stop(1000, 2000)
4949
}
5050
}
5151

@@ -72,7 +72,7 @@ class WebSocketIntegrationTest {
7272
}
7373
} finally {
7474
client?.close()
75-
server?.stopSuspend(1000, 2000)
75+
server?.stop(1000, 2000)
7676
}
7777
}
7878

@@ -108,7 +108,7 @@ class WebSocketIntegrationTest {
108108
} finally {
109109
clientA?.close()
110110
clientB?.close()
111-
server?.stopSuspend(1000, 2000)
111+
server?.stop(1000, 2000)
112112
}
113113
}
114114

@@ -134,7 +134,7 @@ class WebSocketIntegrationTest {
134134
return client
135135
}
136136

137-
private suspend fun initServer(): EmbeddedServer<CIOApplicationEngine, CIOApplicationEngine.Configuration> {
137+
private fun initServer(): EmbeddedServer<CIOApplicationEngine, CIOApplicationEngine.Configuration> {
138138
val server = Server(
139139
Implementation(name = "websocket-server", version = "1.0.0"),
140140
ServerOptions(
@@ -171,7 +171,7 @@ class WebSocketIntegrationTest {
171171
}
172172
}
173173

174-
return ktorServer.startSuspend(wait = false)
174+
return ktorServer.start(wait = false)
175175
}
176176

177177
/**

0 commit comments

Comments
 (0)