Skip to content

Commit

Permalink
bench(bin): panic when server terminates
Browse files Browse the repository at this point in the history
The `neqo-bin` benchmarks spin up a `neqo-server` and then run various different
client scenarios against it. Once done, they send the `neqo-server` a signal to
terminate.

In case the server terminates early (e.g. due to an error), surface it to the
user.
  • Loading branch information
mxinden committed Apr 15, 2024
1 parent cf00098 commit ddb9d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neqo-bin/benches/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fn spawn_server() -> tokio::sync::oneshot::Sender<()> {
let mut server = Box::pin(server::server(server::Args::default()));
tokio::select! {
_ = &mut done_receiver => {}
_ = &mut server => {}
res = &mut server => panic!("expect server not to terminate: {res:?}"),
}
});
});
Expand Down

0 comments on commit ddb9d67

Please sign in to comment.