Running ‘testthat.R’ [0m/13m]
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(BFS)
  > 
  > test_check("BFS")
   ====>--------------------------   14% |  ETA:  9s
   ===========>-------------------   36% |  ETA:  8s
   ==============>----------------   45% |  ETA:  8s
   ====================>----------   68% |  ETA:  5s
   ======================>--------   73% |  ETA:  5s
   ====>--------------------------   13% |  ETA: 25s
   =======>-----------------------   24% |  ETA: 22s
   ==========>--------------------   34% |  ETA: 19s
   =============>-----------------   45% |  ETA: 16s
   ================>--------------   55% |  ETA: 13s
   ====================>----------   65% |  ETA: 10s
   =======================>-------   75% |  ETA:  7s
   ==========================>----   86% |  ETA:  4s
   =============================>-   96% |  ETA:  1s
  [ FAIL 2 | WARN 2 | SKIP 0 | PASS 47 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-bfs_get_data_comments.R:5:3'): bfs_get_data_comments() works ───
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Recv failure: Connection reset by peer
  Backtrace:
      ▆
   1. └─BFS::bfs_get_data_comments(...) at test-bfs_get_data_comments.R:5:3
   2.   └─pxweb::pxweb_get(url = pxweb_api_url, query = pxq)
   3.     └─pxweb::pxweb_advanced_get(url = url, query = query, verbose = verbose)
   4.       └─httr::POST(...)
   5.         └─httr:::request_perform(req, hu$handle$handle)
   6.           ├─httr:::request_fetch(req$output, req$url, handle)
   7.           └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   8.             └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-bfs_get_metadata.R:5:3'): bfs_get_metadata() works ─────────────
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(.)`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Recv failure: Connection reset by peer
  Backtrace:
       ▆
    1. ├─BFS::bfs_get_metadata(number_bfs = "px-x-1502040100_131") at test-bfs_get_metadata.R:5:3
    2. │ └─... %>% httr2::resp_body_json(simplifyVector = TRUE)
    3. ├─httr2::resp_body_json(., simplifyVector = TRUE)
    4. │ └─httr2:::check_response(resp)
    5. │   └─httr2:::is_response(resp)
    6. └─httr2::req_perform(.)
    7.   └─base::tryCatch(...)
    8.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.         └─value[[3L]](cond)
  
  [ FAIL 2 | WARN 2 | SKIP 0 | PASS 47 ]
  Error: Test failures
  Execution halted