Skip to content

Commit f9246f3

Browse files
committed
fixup! Introduce Kotlin integration tests
Signed-off-by: Sergey Karpov <[email protected]>
1 parent c62b537 commit f9246f3

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

kotlin-sdk-test/src/jvmTest/kotlin/io/modelcontextprotocol/kotlin/sdk/integration/typescript/TypeScriptClientKotlinServerTest.kt

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -75,33 +75,6 @@ class TypeScriptClientKotlinServerTest : TypeScriptTestBase() {
7575
)
7676
}
7777

78-
@Test
79-
@Timeout(30, unit = TimeUnit.SECONDS)
80-
fun testToolCallWithSessionManagement() {
81-
val testName = "SessionTest"
82-
val command = "npx tsx myClient.ts $serverUrl greet $testName"
83-
val output = executeCommand(command, tsClientDir)
84-
85-
assertTrue(output.contains("Connected to server"), "Client should connect to server")
86-
assertTrue(
87-
output.contains("Hello, $testName!"),
88-
"Tool response should contain the greeting with the provided name",
89-
)
90-
assertTrue(output.contains("Tool result:"), "Output should indicate a successful tool call")
91-
assertTrue(output.contains("Disconnected from server"), "Client should disconnect cleanly")
92-
93-
val multiGreetName = "NotificationTest"
94-
val multiGreetCommand = "npx tsx myClient.ts $serverUrl multi-greet $multiGreetName"
95-
val multiGreetOutput = executeCommand(multiGreetCommand, tsClientDir)
96-
97-
assertTrue(multiGreetOutput.contains("Connected to server"), "Client should connect to server")
98-
assertTrue(
99-
multiGreetOutput.contains("Multiple greetings") || multiGreetOutput.contains("greeting"),
100-
"Tool response should contain greeting message",
101-
)
102-
assertTrue(multiGreetOutput.contains("Disconnected from server"), "Client should disconnect cleanly")
103-
}
104-
10578
@Test
10679
@Timeout(120, unit = TimeUnit.SECONDS)
10780
fun testMultipleClientSequence() {

0 commit comments

Comments
 (0)