Properly await the server future
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9f3c2813ab
commit
a64f55f362
@ -38,7 +38,7 @@ pub async fn spawn_app() -> TestApp {
|
|||||||
.await
|
.await
|
||||||
.expect("Failed to bind address");
|
.expect("Failed to bind address");
|
||||||
|
|
||||||
let _ = tokio::spawn(server);
|
let _ = tokio::spawn(server).await;
|
||||||
|
|
||||||
TestApp {
|
TestApp {
|
||||||
address,
|
address,
|
||||||
|
Loading…
Reference in New Issue
Block a user