From 4c8c2b9b6cc28b8e270e2164113b551525b1366c Mon Sep 17 00:00:00 2001 From: tottoto Date: Wed, 29 May 2024 21:17:48 +0900 Subject: [PATCH] chore(test): resolve result in test --- src/server/conn/auto.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/server/conn/auto.rs b/src/server/conn/auto.rs index 4ce208f..c6668e9 100644 --- a/src/server/conn/auto.rs +++ b/src/server/conn/auto.rs @@ -1177,17 +1177,18 @@ mod tests { let mut builder = auto::Builder::new(TokioExecutor::new()); if h1_only { builder = builder.http1_only(); - builder.serve_connection(stream, service_fn(hello)).await; + builder.serve_connection(stream, service_fn(hello)).await } else if h2_only { builder = builder.http2_only(); - builder.serve_connection(stream, service_fn(hello)).await; + builder.serve_connection(stream, service_fn(hello)).await } else { builder .http2() .max_header_list_size(4096) .serve_connection_with_upgrades(stream, service_fn(hello)) - .await; + .await } + .unwrap(); }); } });