diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index 03b830783d..a91416bb57 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -722,7 +722,10 @@ async fn wrap_main_https_server() { } } -#[tokio::main] +// Use the single-threaded scheduler. The hyper server is used as a point of +// comparison for the (single-threaded!) benchmarks in cli/bench. We're not +// comparing apples to apples if we use the default multi-threaded scheduler. +#[tokio::main(basic_scheduler)] pub async fn run_all_servers() { if let Some(port) = env::args().nth(1) { return hyper_hello(port.parse::().unwrap()).await;