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: kroto-plus-coroutines/src/test/kotlin/com/github/marcoferrer/krotoplus/coroutines/client/ClientCallBidiStreamingTests.kt
Copy file name to clipboardExpand all lines: kroto-plus-coroutines/src/test/kotlin/com/github/marcoferrer/krotoplus/coroutines/integration/BidiStreamingTests.kt
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -111,8 +111,8 @@ class BidiStreamingTests : RpcCallTest<HelloRequest, HelloReply>(GreeterCoroutin
111
111
}
112
112
})
113
113
lateinitvar reqChanSpy:SendChannel<HelloRequest>
114
-
runTest(5000L) {
115
-
val stub =GreeterCoroutineGrpc.newStub(nonDirectGrpcServerRule.channel)
114
+
runTest(30_000) {
115
+
val stub =GreeterCoroutineGrpc.newStub(grpcServerRule.channel)
116
116
.withInterceptors(callState)
117
117
.withCoroutineContext()
118
118
@@ -131,11 +131,6 @@ class BidiStreamingTests : RpcCallTest<HelloRequest, HelloReply>(GreeterCoroutin
131
131
reqJob.join()
132
132
}
133
133
134
-
runBlocking { serverJob.join() }
135
-
136
-
// 1 - Server requests and receives
137
-
// 2 - Message is loaded into outbound buffer
138
-
// 3 - Suspending invocation awaiting next onReady
139
134
coVerify(exactly =3) { reqChanSpy.send(any()) }
140
135
assert(reqChanSpy.isClosedForSend) { "Request channel should be closed after response channel is closed" }
141
136
}
@@ -162,7 +157,7 @@ class BidiStreamingTests : RpcCallTest<HelloRequest, HelloReply>(GreeterCoroutin
Copy file name to clipboardExpand all lines: kroto-plus-coroutines/src/test/kotlin/com/github/marcoferrer/krotoplus/coroutines/integration/ClientStreamingBackPressureTests.kt
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -201,13 +201,15 @@ class ClientStreamingBackPressureTests :
201
201
}
202
202
203
203
callState {
204
-
// blockUntilCancellation()
205
204
client.closed.assertBlocking { "Client must be closed" }
0 commit comments