feat: add configurability
This commit is contained in:
parent
89ea0995bb
commit
8257255dc2
10 changed files with 1406 additions and 26 deletions
|
|
@ -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 }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue