Skip to content

Commit 523f154

Browse files
committed
[PM-37616] use new_http_client() in vault tests
1 parent 32c0f16 commit 523f154

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • crates/bitwarden-vault/src/cipher_risk

crates/bitwarden-vault/src/cipher_risk/hibp.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ pub(super) async fn check_password_exposed(
7171

7272
#[cfg(test)]
7373
mod tests {
74+
use bitwarden_api_api::new_http_client;
75+
7476
use super::*;
7577

7678
#[test]
@@ -163,8 +165,7 @@ mod tests {
163165
.mount(&server)
164166
.await;
165167

166-
let result =
167-
check_password_exposed(&reqwest::Client::new(), "password", &server.uri()).await;
168+
let result = check_password_exposed(&new_http_client(), "password", &server.uri()).await;
168169

169170
assert!(result.is_err());
170171
assert!(matches!(result.unwrap_err(), CipherRiskError::Reqwest(_)));

0 commit comments

Comments
 (0)