Skip to content

Commit 5a35e48

Browse files
committed
test: fix the localhost address for the TestApp
1 parent 044d362 commit 5a35e48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/api/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub async fn spawn_app() -> TestApp {
5555

5656
// Launch the application as a background task
5757
let application = Application::build(configuration.clone()).await.expect("Failed to build application.");
58-
let address = format!("http://127.0.0.1:{}", application.port());
58+
let address = format!("http://localhost:{}", application.port());
5959
let _ = tokio::spawn(application.run_until_stopped());
6060
TestApp {
6161
address,

0 commit comments

Comments
 (0)