feat: add configurability

This commit is contained in:
Sandro Eiler 2024-01-01 14:34:42 +01:00
parent 89ea0995bb
commit 8257255dc2
10 changed files with 1406 additions and 26 deletions

View file

@ -78,7 +78,9 @@ async fn spawn_app() -> TestApp {
let listener = TcpListener::bind("127.0.0.1:0").await.unwrap();
let addr = listener.local_addr().unwrap();
tokio::spawn(async move {
axum::serve(listener, learn_axum::startup::app()).await.unwrap();
});
axum::serve(listener, learn_axum::startup::app())
.await
.unwrap();
});
TestApp { addr }
}