Skip to content

Commit

Permalink
chore(test): resolve result in test (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored May 29, 2024
1 parent 195e312 commit 3def94a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/server/conn/auto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
});
Expand Down

0 comments on commit 3def94a

Please sign in to comment.