Skip to content

Commit

Permalink
Merge branch 'main' into feature/decode-url
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Jan 10, 2025
2 parents e8f488a + 62c58a7 commit e6117e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vignettes/how-to.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ web <- webfakes::local_app_process(
test_that("", {
url <- web$url("/delay/1")
p <- curl::new_pool()
handles <- replicate(3, curl::new_handle(url = url))
handles <- replicate(3, curl::new_handle(url = url, http_version = 2))
resps <- list()
for (handle in handles) {
curl::multi_add(
Expand All @@ -397,6 +397,9 @@ test_that("", {
})
```

(The `http_version = 2` option is currently needed because of a bug
(https://github.com/r-lib/webfakes/issues/108).)

## How to make sure that my code works with the *real* API?

Indeed, if you use webfakes for your test cases, then they never touch the real web server.
Expand Down

0 comments on commit e6117e3

Please sign in to comment.