Browse Source

Check all responses in stream_closed test.

wip
Titouan Rigoudy 4 years ago
parent
commit
86552bf3a5
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/proto/server/client.rs

+ 2
- 1
src/proto/server/client.rs View File

@ -292,13 +292,14 @@ mod tests {
// chance to send all of `outbound`.
handle.shutdown();
// Check that the client returns the correct error.
// Check that the client returns the correct error, then stops running.
assert!(inbound
.next()
.await
.unwrap()
.unwrap_err()
.is_stream_closed());
assert!(inbound.next().await.is_none());
server_task.await.unwrap().unwrap();
}


Loading…
Cancel
Save