Fix blocking test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Valentin Brandl 2023-06-13 11:09:54 +02:00
parent a64f55f362
commit 87bae1bbd1

View File

@ -38,7 +38,9 @@ pub async fn spawn_app() -> TestApp {
.await .await
.expect("Failed to bind address"); .expect("Failed to bind address");
let _ = tokio::spawn(server).await; #[allow(clippy::let_underscore_future)]
// don't await so the test server runs in the background
let _ = tokio::spawn(server);
TestApp { TestApp {
address, address,