Skip to content

Commit

Permalink
test: fix the localhost address for the TestApp
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsavio committed Apr 3, 2024
1 parent 044d362 commit 5a35e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/api/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub async fn spawn_app() -> TestApp {

// Launch the application as a background task
let application = Application::build(configuration.clone()).await.expect("Failed to build application.");
let address = format!("http://127.0.0.1:{}", application.port());
let address = format!("http://localhost:{}", application.port());
let _ = tokio::spawn(application.run_until_stopped());
TestApp {
address,
Expand Down

0 comments on commit 5a35e48

Please sign in to comment.