From a64f55f362c87172ab5c39b635fb394f4a58fa8c Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Tue, 13 Jun 2023 10:42:53 +0200 Subject: [PATCH] Properly await the server future --- tests/util/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util/mod.rs b/tests/util/mod.rs index 296f983..54f2e87 100644 --- a/tests/util/mod.rs +++ b/tests/util/mod.rs @@ -38,7 +38,7 @@ pub async fn spawn_app() -> TestApp { .await .expect("Failed to bind address"); - let _ = tokio::spawn(server); + let _ = tokio::spawn(server).await; TestApp { address,