Skip to content

Commit

Permalink
test less of the resultting stirng in no stub match
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Oct 27, 2024
1 parent b29369f commit 5cc5c4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-CrulAdapter.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ test_that("CrulAdapter works", {
unloadNamespace("vcr")
expect_error(
res$handle_request(crul_obj),
"Real HTTP connections are disabled.\n\033\\[33m!\033\\[39m Unregistered request"
"Real HTTP connections are disabled"
)

invisible(stub_request("get", "http://localhost:9000/get"))
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-Httr2Adapter.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ test_that("Httr2Adapter works", {
unloadNamespace("vcr")
expect_error(
res$handle_request(httr2_obj),
"Real HTTP connections are disabled.\n\033\\[33m!\033\\[39m Unregistered request"
"Real HTTP connections are disabled"
)

invisible(stub_request("get", hb("/get")))
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-HttrAdapter.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ test_that("HttrAdapter works", {
unloadNamespace("vcr")
expect_error(
res$handle_request(httr_obj),
"Real HTTP connections are disabled.\n\033\\[33m!\033\\[39m Unregistered request"
"Real HTTP connections are disabled"
)

invisible(stub_request("get", hb("/get")))
Expand Down

0 comments on commit 5cc5c4e

Please sign in to comment.