Skip to content

Commit

Permalink
test: use local_mocked_responses() instead of deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Apr 4, 2024
1 parent 5e6484a commit 353788b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-networks.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test_that("riem_networks errors if API error",{
my_mock <- function(req) {
httr2::response(status_code = 502)
}
httr2::local_mock(my_mock)
httr2::local_mocked_responses(my_mock)
expect_snapshot_error(riem_networks())
})

0 comments on commit 353788b

Please sign in to comment.