Skip to content

Commit 988b28e

Browse files
committed
test(common): switch from runTest to runBlocking in HTTP requester test
Change the test coroutine builder to runBlocking to better suit the test scenario.
1 parent e1c42a3 commit 988b28e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/jvmTest/kotlin/com/tddworks/common/network/api/ktor/DefaultHttpRequesterTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class DefaultHttpRequesterTest : AutoCloseKoinTest() {
202202
}
203203

204204
@Test
205-
fun `should not return chat stream completion response when it's empty response`() = runTest {
205+
fun `should not return chat stream completion response when it's empty response`() = runBlocking {
206206
httpClient = mockHttpClient("")
207207

208208
val requester = DefaultHttpRequester(httpClient)

0 commit comments

Comments
 (0)