Skip to content

Commit

Permalink
chore: update test application to ensure that client has the same ip …
Browse files Browse the repository at this point in the history
…as the app
  • Loading branch information
pnwatin committed Apr 9, 2024
1 parent 43839e9 commit 1716721
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/api/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ impl TestApplication {
}

pub fn client(&self) -> reqwest::Client {
reqwest::Client::new()
reqwest::Client::builder()
.local_address(self.address.ip())
.build()
.expect("Failed to build client")
}

pub fn format_url(&self, path: impl Into<String>) -> String {
Expand Down

0 comments on commit 1716721

Please sign in to comment.