Skip to content

Commit

Permalink
Restore panicking behavior in test code
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Jan 18, 2021
1 parent 4778810 commit f8a37a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rpc/src/client/transport/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,10 @@ mod test {
loop {
tokio::select! {
Some(ev) = self.event_rx.recv() => self.publish_event(ev),
Ok((stream, _)) = self.listener.accept() => self.handle_incoming(stream).await,
res = self.listener.accept() => {
let (stream, _) = res.unwrap();
self.handle_incoming(stream).await
}
Some(res) = self.terminate_rx.recv() => {
self.terminate().await;
return res;
Expand Down

0 comments on commit f8a37a6

Please sign in to comment.