Running ‘testthat.R’ [1s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(icesVocab)
  > 
  > test_check("icesVocab")
  GETing ... https://vocab.ices.dk/services/api/CodeDetail/SpecWoRMS/wrong_code
  no token used
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 2 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test_getCodeDetail.R:3:11'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_getCodeDetail.R:13:13'): test getCodeDetail does not fail when code wrong ──
  <curl_error_couldnt_connect/curl_error/error/condition>
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not connect to server [vocab.ices.dk]:
  Failed to connect to vocab.ices.dk port 443 after 1630 ms: Could not connect to server
  Backtrace:
       ▆
    1. ├─utils::capture.output(...) at test_getCodeDetail.R:13:13
    2. │ └─base::withVisible(...elt(i))
    3. ├─testthat::expect_message(...)
    4. │ └─testthat:::expect_condition_matching_(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat (local) .capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. ├─icesVocab::getCodeDetail("SpecWoRMS", "wrong_code")
   10. │ ├─icesVocab:::vocab_get_cached(...)
   11. │ │ ├─base::withVisible(eval(mc, parent.frame()))
   12. │ │ └─base::eval(mc, parent.frame())
   13. │ │   └─base::eval(mc, parent.frame())
   14. │ └─icesVocab (local) `<fn>`(...)
   15. │   └─icesConnect::ices_get(url, retry, quiet, verbose, content, use_token = FALSE)
   16. │     └─icesConnect::ices_get_jwt(...)
   17. │       └─icesConnect::ices_request_jwt(...)
   18. │         ├─base::do.call(HTTPFUN, args)
   19. │         └─httr (local) `<fn>`(...)
   20. │           └─httr:::request_perform(req, hu$handle$handle)
   21. │             ├─httr:::request_fetch(req$output, req$url, handle)
   22. │             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   23. │               └─curl::curl_fetch_memory(url, handle = handle)
   24. └─curl:::raise_libcurl_error(...)
  
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 2 ]
  Error:
  ! Test failures.
  Execution halted