Skip to content

Commit 657490a

Browse files
committed
Relocate WebSocketIntegrationTest from commonTest to jvmTest
1 parent 20e4e44 commit 657490a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.modelcontextprotocol.kotlin.sdk.integration
1+
package io.modelcontextprotocol.kotlin.sdk.integration.kotlin.websocket
22

33
import io.ktor.client.HttpClient
44
import io.ktor.server.application.install
@@ -22,7 +22,6 @@ import io.modelcontextprotocol.kotlin.sdk.server.mcpWebSocket
2222
import kotlinx.coroutines.Dispatchers
2323
import kotlinx.coroutines.test.runTest
2424
import kotlinx.coroutines.withContext
25-
import kotlin.test.Ignore
2625
import kotlin.test.Test
2726
import kotlin.test.assertTrue
2827
import kotlin.time.Duration.Companion.seconds
@@ -34,7 +33,6 @@ import io.ktor.server.websocket.WebSockets as ServerWebSockets
3433
class WebSocketIntegrationTest {
3534

3635
@Test
37-
@Ignore // Ignored because it doesn’t work with wasm/js in Ktor 3.2.3
3836
fun `client should be able to connect to websocket server 2`() = runTest(timeout = 5.seconds) {
3937
var server: EmbeddedServer<CIOApplicationEngine, CIOApplicationEngine.Configuration>? = null
4038
var client: Client? = null
@@ -59,7 +57,6 @@ class WebSocketIntegrationTest {
5957
* 3. Observe that Client A receives a response related to it.
6058
*/
6159
@Test
62-
@Ignore // Ignored because it doesn’t work with wasm/js in Ktor 3.2.3
6360
fun `single websocket connection`() = runTest(timeout = 5.seconds) {
6461
var server: EmbeddedServer<CIOApplicationEngine, CIOApplicationEngine.Configuration>? = null
6562
var client: Client? = null
@@ -88,7 +85,6 @@ class WebSocketIntegrationTest {
8885
* 4. Observe that Client B (connection #2) receives a response related to sessionId#1.
8986
*/
9087
@Test
91-
@Ignore // Ignored because it doesn’t work with wasm/js in Ktor 3.2.3
9288
fun `multiple websocket connections`() = runTest(timeout = 5.seconds) {
9389
var server: EmbeddedServer<CIOApplicationEngine, CIOApplicationEngine.Configuration>? = null
9490
var clientA: Client? = null

0 commit comments

Comments
 (0)