Skip to content

Commit

Permalink
Normalize URL for macos.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonthegeek committed Jan 20, 2025
1 parent e19bbb8 commit fdd522b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/testthat/test-req_auth_api_key.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,16 @@ test_that("req_auth_api_key works for query", {
api_key = "my_key",
location = "query"
)
# As of 2025-01-20, httr2 on macos did not insert the "/", but all other OSs
# did. Normalizing manually here.
test_result$url <- stringr::str_replace(
test_result$url,
stringr::fixed("/?parm"),
stringr::fixed("?parm")
)
expect_identical(
test_result$url,
"https://example.com/?parm=my_key"
"https://example.com?parm=my_key"
)
})

Expand Down

0 comments on commit fdd522b

Please sign in to comment.