Skip to content

Commit 1225359

Browse files
committed
fix(test): use github.com instead of example.com for HTTPS tests
example.com now uses Cloudflare TLS certificates not yet in all CA stores (e.g. webpki-roots), causing test failures.
1 parent 611e420 commit 1225359

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/http.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ mod tests {
241241

242242
#[tokio::test]
243243
async fn test_https_get() {
244-
let url = "https://example.com".parse().unwrap();
244+
let url = "https://github.com".parse().unwrap();
245245
let result = https_get(url, &HashMap::new()).await;
246246
assert!(result.is_ok());
247247
assert!(!result.unwrap().body.unwrap().is_empty());
@@ -263,7 +263,7 @@ mod tests {
263263

264264
#[tokio::test]
265265
async fn test_https_head() {
266-
let url = "https://example.com".parse().unwrap();
266+
let url = "https://github.com".parse().unwrap();
267267
let result = https_head(url, &HashMap::new()).await;
268268
assert!(result.is_ok());
269269
assert!(result.unwrap().body.is_none());

0 commit comments

Comments
 (0)