Skip to content

Commit 91637ba

Browse files
committed
grpc: Avoid delay in this case
Signed-off-by: Johannes Zottele <[email protected]>
1 parent 45edf31 commit 91637ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grpc/grpc-core/src/commonTest/kotlin/kotlinx/rpc/grpc/test/CoreClientTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class GrpcCoreClientTest {
205205
)
206206

207207
channel.shutdown()
208-
runBlocking { delay(100) }
208+
runBlocking { channel.awaitTermination() }
209209
call.start(listener, GrpcTrailers())
210210
call.sendMessage(helloReq())
211211
call.halfClose()

0 commit comments

Comments
 (0)