Skip to content

Commit 2a80471

Browse files
committed
Change runTest to runBlocking
1 parent d131be6 commit 2a80471

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import io.modelcontextprotocol.kotlin.sdk.Tool
1111
import kotlinx.coroutines.delay
1212
import kotlinx.coroutines.flow.flow
1313
import kotlinx.coroutines.runBlocking
14-
import kotlinx.coroutines.test.runTest
1514
import kotlinx.serialization.json.buildJsonObject
1615
import kotlinx.serialization.json.put
1716
import kotlinx.serialization.json.putJsonObject
@@ -156,15 +155,15 @@ internal class StreamableHttpClientTest : AbstractStreamableHttpClientTest() {
156155
}
157156

158157
@Test
159-
fun `handle MethodNotAllowed`() = runTest {
158+
fun `handle MethodNotAllowed`() = runBlocking {
160159
checkSupportNonStreamingResponse(
161160
ContentType.Text.EventStream,
162161
HttpStatusCode.MethodNotAllowed,
163162
)
164163
}
165164

166165
@Test
167-
fun `handle non-streaming response`() = runTest {
166+
fun `handle non-streaming response`() = runBlocking {
168167
checkSupportNonStreamingResponse(
169168
ContentType.Application.Json,
170169
HttpStatusCode.OK,

0 commit comments

Comments
 (0)