Skip to content

Commit 9a5db70

Browse files
committed
Replace OldSchemaMockMcp with MockMcp in tests and bump mokksy dependency to 0.6.2.
1 parent e5abc3f commit 9a5db70

File tree

4 files changed

+3
-239
lines changed

4 files changed

+3
-239
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ logging = "7.0.13"
2020
slf4j = "2.0.17"
2121
kotest = "6.0.4"
2222
awaitility = "4.3.0"
23-
mokksy = "0.6.1"
23+
mokksy = "0.6.2"
2424

2525
[libraries]
2626
# Plugins

kotlin-sdk-client/src/jvmTest/kotlin/io/modelcontextprotocol/kotlin/sdk/client/AbstractStreamableHttpClientTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import org.junit.jupiter.api.TestInstance
1212
internal abstract class AbstractStreamableHttpClientTest {
1313

1414
// start mokksy on random port
15-
protected val mockMcp: OldSchemaMockMcp = OldSchemaMockMcp(verbose = true)
15+
protected val mockMcp: MockMcp = MockMcp(verbose = true)
1616

1717
@AfterEach
1818
fun afterEach() {

kotlin-sdk-client/src/jvmTest/kotlin/io/modelcontextprotocol/kotlin/sdk/client/OldSchemaMockMcp.kt

Lines changed: 0 additions & 236 deletions
This file was deleted.

kotlin-sdk-client/src/jvmTest/kotlin/io/modelcontextprotocol/kotlin/sdk/client/StreamableHttpClientTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ internal class StreamableHttpClientTest : AbstractStreamableHttpClientTest() {
207207

208208
delay(1.seconds)
209209

210-
client.ping() // connection is still alive
210+
client.ping() // the connection is still alive
211211

212212
client.close()
213213
}

0 commit comments

Comments
 (0)