You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kotlin-sdk-test/src/jvmTest/kotlin/io/modelcontextprotocol/kotlin/sdk/integration/typescript/TypeScriptEdgeCasesTest.kt
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -64,14 +64,14 @@ class TypeScriptEdgeCasesTest : TypeScriptTestBase() {
64
64
funtestSpecialCharacters() {
65
65
val specialChars ="!@#$+-[].,?"
66
66
67
-
val tempFile =File(tsClientDir, "special_chars.txt")
67
+
val tempFile =File.createTempFile("special_chars", ".txt")
68
68
tempFile.writeText(specialChars)
69
+
tempFile.deleteOnExit()
69
70
70
-
val specialCharsCommand ="npx tsx myClient.ts $serverUrl greet \"$(cat special_chars.txt)\""
71
+
val specialCharsContent = tempFile.readText()
72
+
val specialCharsCommand ="npx tsx myClient.ts $serverUrl greet \"$specialCharsContent\""
71
73
val specialCharsOutput = executeCommand(specialCharsCommand, tsClientDir)
0 commit comments