Running ‘testthat.R’ [10s/41s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(viafr)
  > 
  > test_check("viafr")
  ── 1. Error: query list (@test_get.R#4)  ───────────────────────────────────────
  GnuTLS recv error (-54): Error in the pull function.
  Backtrace:
    1. testthat::expect_equal(unlist(viaf_get(list("102333412"))), unlist(viaf_get("102333412")))
    5. viafr::viaf_get(list("102333412"))
    9. purrr::map(query, viaf_retrieve, ...)
   10. viafr:::.f(.x[[i]], ...)
   11. cli$get(query = args)
   12. private$make_request(rr)
   13. crul:::crul_fetch(opts)
   14. curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  
  ── 2. Error: empty query (@test_get.R#15)  ─────────────────────────────────────
  Recv failure: Connection reset by peer
  Backtrace:
    1. testthat::expect_warning(result <- viaf_get(""))
    6. viafr::viaf_get("")
   10. purrr::map(query, viaf_retrieve, ...)
   11. viafr:::.f(.x[[i]], ...)
   12. cli$get(query = args)
   13. private$make_request(rr)
   14. crul:::crul_fetch(opts)
   15. curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  
  ── 3. Error: no results (@test_search.R#11)  ───────────────────────────────────
  GnuTLS recv error (-54): Error in the pull function.
  Backtrace:
    1. viafr::viaf_search("asdfgh")
    5. purrr::map(query, viaf_retrieve_query, endpoint = endpoint, ...)
    6. viafr:::.f(.x[[i]], ...)
    9. cli$get(query = args)
   10. private$make_request(rr)
   11. crul:::crul_fetch(opts)
   12. curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  
  ── 4. Error: invalid query (@test_utils.R#7)  ──────────────────────────────────
  GnuTLS recv error (-54): Error in the pull function.
  Backtrace:
   1. testthat::expect_true(is.null(viaf_retrieve("10233341")))
   4. viafr:::viaf_retrieve("10233341")
   5. cli$get(query = args)
   6. private$make_request(rr)
   7. crul:::crul_fetch(opts)
   8. curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 37 | SKIPPED: 0 | WARNINGS: 30 | FAILED: 4 ]
  1. Error: query list (@test_get.R#4) 
  2. Error: empty query (@test_get.R#15) 
  3. Error: no results (@test_search.R#11) 
  4. Error: invalid query (@test_utils.R#7) 
  
  Error: testthat unit tests failed
  Execution halted