File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ public struct CallResult: CustomStringConvertible {
108
108
initialMetadata = op. receivedInitialMetadata ( )
109
109
trailingMetadata = op. receivedTrailingMetadata ( )
110
110
} else {
111
- statusCode = . ok
111
+ statusCode = . unknown
112
112
statusMessage = nil
113
113
resultData = nil
114
114
initialMetadata = nil
Original file line number Diff line number Diff line change @@ -220,8 +220,6 @@ func callServerStream(channel: Channel) throws {
220
220
sem. signal ( ) // signal call is finished
221
221
}
222
222
223
- call. messageQueueEmpty. wait ( ) // wait for start to finish
224
-
225
223
for _ in 0 ..< steps {
226
224
let messageSem = DispatchSemaphore ( value: 0 )
227
225
try call. receiveMessage ( completion: { ( data) in
@@ -234,6 +232,7 @@ func callServerStream(channel: Channel) throws {
234
232
235
233
_ = messageSem. wait ( )
236
234
}
235
+
237
236
_ = sem. wait ( )
238
237
}
239
238
@@ -260,8 +259,6 @@ func callBiDiStream(channel: Channel) throws {
260
259
sem. signal ( ) // signal call is finished
261
260
}
262
261
263
- call. messageQueueEmpty. wait ( ) // wait for start to finish
264
-
265
262
// Send pings
266
263
for _ in 0 ..< steps {
267
264
let pingSem = DispatchSemaphore ( value: 0 )
@@ -285,6 +282,8 @@ func callBiDiStream(channel: Channel) throws {
285
282
} )
286
283
_ = pongSem. wait ( )
287
284
}
285
+
286
+ _ = sem. wait ( )
288
287
}
289
288
290
289
func runServer( server: Server ) throws {
You can’t perform that action at this time.
0 commit comments