Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rbcb)
  > 
  > test_check("rbcb")
  [ FAIL 2 | WARN 0 | SKIP 34 | PASS 0 ]
  
  ══ Skipped tests (34) ══════════════════════════════════════════════════════════
  • On CRAN (34): 'test-currencies.R:3:5', 'test-currencies.R:14:5',
    'test-currencies.R:28:5', 'test-currencies.R:38:5', 'test-currencies.R:52:5',
    'test-currencies.R:66:5', 'test-currencies.R:84:5', 'test-currencies.R:95:5',
    'test-datasets.R:2:3', 'test-get_series.R:3:5', 'test-get_series.R:19:5',
    'test-get_series.R:29:5', 'test-get_series.R:39:5', 'test-get_series.R:61:5',
    'test-get_series.R:72:5', 'test-get_series.R:84:5', 'test-get_series.R:96:5',
    'test-get_series.R:108:5', 'test-odata-expectativas.R:3:5',
    'test-odata-expectativas.R:18:5', 'test-odata-expectativas.R:32:5',
    'test-odata-expectativas.R:46:5', 'test-odata-expectativas.R:58:5',
    'test-odata-expectativas.R:71:5', 'test-odata-expectativas.R:86:5',
    'test-odata-expectativas.R:109:5', 'test-odata-expectativas.R:124:5',
    'test-odata-expectativas.R:138:5', 'test-odata-ptax.R:3:5',
    'test-odata-ptax.R:28:5', 'test-odata-ptax.R:40:5', 'test-odata-ptax.R:54:5',
    'test-odata-ptax.R:64:5', 'test-sgs.R:2:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-utils.R:5:3'): it should test http download without cache ──────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: OpenSSL SSL_read: Connection reset by peer, errno 104
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(http_download("get", url)) at test-utils.R:5:2
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─rbcb:::http_download("get", url)
   10.   └─rbcb:::http_getter(...)
   11.     └─httr::GET(url = url, config = list(), handle = h, if (verbose) verbose())
   12.       └─httr:::request_perform(req, hu$handle$handle)
   13.         ├─httr:::request_fetch(req$output, req$url, handle)
   14.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   15.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-utils.R:12:3'): it should test http download with cache ────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: OpenSSL SSL_read: Connection reset by peer, errno 104
  Backtrace:
      ▆
   1. └─rbcb:::http_download("get", url) at test-utils.R:12:2
   2.   └─rbcb:::http_getter(...)
   3.     └─httr::GET(url = url, config = list(), handle = h, if (verbose) verbose())
   4.       └─httr:::request_perform(req, hu$handle$handle)
   5.         ├─httr:::request_fetch(req$output, req$url, handle)
   6.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   7.           └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 2 | WARN 0 | SKIP 34 | PASS 0 ]
  Error: Test failures
  Execution halted