Running ‘test-all.R’ [37s/39s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > test_check("rgbif")
  Loading required package: rgbif
  ── 1. Failure: fails correctly (@test-enumeration.r#23)  ───────────────────────
  `enumeration_country(list(timeout_ms = 1))` threw an error with unexpected message.
  Expected match: "Timeout was reached"
  Actual message: "\n\n================================================================================\nAn HTTP request has been made that vcr does not know how to handle:\nGET https://api.gbif.org/v1/enumeration/country/\nvcr is currently using the following cassette:\n  - ../fixtures/datasets_fails_well.yml\n    - record_mode: once\n    - match_requests_on: method, uri\n\n\nUnder the current configuration vcr can not find a suitable HTTP interaction\nto replay and is prevented from recording new requests. There are a few ways\nyou can deal with this:\n\n  * If you're surprised vcr is raising this error\n    and want insight about how vcr attempted to handle the request,\n    you can use 'logging' to see more details [1].\n\n  * You can use the :new_episodes record mode to allow vcr to\n    record this new request to the existing cassette [2].\n\n  * If you want vcr to ignore this request (and others like it), you can\n    set an `ignore_request` function [3].\n\n  * The current record mode ('once') does not allow new requests to be recorded\n    to a previously recorded cassette. You can delete the cassette file and re-run\n    your tests to allow the cassette to be recorded with this request [4].\n\n  * The cassette contains 1 HTTP interaction that has not been\n    played back. If your request is non-deterministic, you may need to\n    change your 'match_requests_on' cassette option to be more lenient\n    or use a custom request matcher to allow it to match [5].\n\n[1] https://books.ropensci.org/http-testing/logging\n\n[2] https://books.ropensci.org/http-testing/record-modes.html#new_episodes\n\n[3] https://books.ropensci.org/http-testing/vcr-configuration#config-ignore-requests\n\n[4] https://books.ropensci.org/http-testing/record-modes.html#once\n\n[5] https://books.ropensci.org/http-testing/request-matching\n\n================================================================================\n\n"
  Backtrace:
    1. testthat::expect_error(...)
    6. rgbif::enumeration_country(list(timeout_ms = 1))
    7. rgbif:::gbif_GET(url, NULL, parse = TRUE, curlopts = curlopts)
    8. cli$get(query = args)
    9. private$make_request(rr)
   10. adap$handle_request(opts)
   11. private$request_handler(req)$handle()
   12. eval(parse(text = req_type_fun))(self$request)
   13. err$run()
   14. self$construct_message()
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 697 | SKIPPED: 61 | WARNINGS: 0 | FAILED: 1 ]
  1. Failure: fails correctly (@test-enumeration.r#23) 
  
  Error: testthat unit tests failed
  Execution halted