We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09e0e6d commit 33ea44fCopy full SHA for 33ea44f
crates/example-tests/src/lib.rs
@@ -354,14 +354,17 @@ pub async fn test_example(
354
let conn = builder.serve_connection(TokioIo::new(stream), &service);
355
tokio::pin!(conn);
356
357
- tokio::select! {
+ let ret = tokio::select! {
358
res = conn.as_mut() => {
359
res.map_err(|e| anyhow::Error::msg(e.to_string()))
360
}
361
_ = rx => {
362
Ok(())
363
364
- }
+ };
365
+
366
+ conn.graceful_shutdown();
367
+ ret
368
},
369
async {
370
#[derive(Deserialize)]
0 commit comments