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