Running ‘testthat.R’ [3s/46s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rbcb)
  > 
  > test_check("rbcb")
  ── 1. Error: it should fetch data from 12-months-infl market expectations API (@
  GnuTLS recv error (-110): The TLS connection was non-properly terminated.
  1: get_twelve_months_inflation_expectations(indic, start_date, end_date) at testthat/test-12-months-inflation.R:8
  2: httr::GET(url)
  3: request_perform(req, hu$handle$handle)
  4: request_fetch(req$output, req$url, handle)
  5: request_fetch.write_memory(req$output, req$url, handle)
  6: curl::curl_fetch_memory(url, handle = handle)
  
  ── 2. Error: it should fetch data from annual market expectations API (@test-foc
  GnuTLS recv error (-110): The TLS connection was non-properly terminated.
  1: get_annual_market_expectations(indic, start_date, end_date) at testthat/test-focus-annual.R:8
  2: httr::GET(url)
  3: request_perform(req, hu$handle$handle)
  4: request_fetch(req$output, req$url, handle)
  5: request_fetch.write_memory(req$output, req$url, handle)
  6: curl::curl_fetch_memory(url, handle = handle)
  
  ── 3. Error: it should fetch data from monthly market expectations API (@test-fo
  GnuTLS recv error (-110): The TLS connection was non-properly terminated.
  1: get_monthly_market_expectations(indic, start_date, end_date) at testthat/test-focus-monthly.R:8
  2: httr::GET(url)
  3: request_perform(req, hu$handle$handle)
  4: request_fetch(req$output, req$url, handle)
  5: request_fetch.write_memory(req$output, req$url, handle)
  6: curl::curl_fetch_memory(url, handle = handle)
  
  ── 4. Error: it should fetch data from monthly market expectations API without s
  GnuTLS recv error (-110): The TLS connection was non-properly terminated.
  1: get_monthly_market_expectations(indic, end_date = end_date, `$top` = 10) at testthat/test-focus-monthly.R:17
  2: httr::GET(url)
  3: request_perform(req, hu$handle$handle)
  4: request_fetch(req$output, req$url, handle)
  5: request_fetch.write_memory(req$output, req$url, handle)
  6: curl::curl_fetch_memory(url, handle = handle)
  
  ── 5. Error: it should fetch data from monthly market expectations API without e
  GnuTLS recv error (-110): The TLS connection was non-properly terminated.
  1: get_monthly_market_expectations(indic, start_date = start_date) at testthat/test-focus-monthly.R:26
  2: httr::GET(url)
  3: request_perform(req, hu$handle$handle)
  4: request_fetch(req$output, req$url, handle)
  5: request_fetch.write_memory(req$output, req$url, handle)
  6: curl::curl_fetch_memory(url, handle = handle)
  
  ── 6. Error: it should fetch data from quarterly market expectations API (@test-
  GnuTLS recv error (-110): The TLS connection was non-properly terminated.
  1: get_quarterly_market_expectations(indic, start_date, end_date) at testthat/test-focus-quarterly.R:8
  2: httr::GET(url)
  3: request_perform(req, hu$handle$handle)
  4: request_fetch(req$output, req$url, handle)
  5: request_fetch.write_memory(req$output, req$url, handle)
  6: curl::curl_fetch_memory(url, handle = handle)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 59 SKIPPED: 0 FAILED: 6
  1. Error: it should fetch data from 12-months-infl market expectations API (@test-12-months-inflation.R#8) 
  2. Error: it should fetch data from annual market expectations API (@test-focus-annual.R#8) 
  3. Error: it should fetch data from monthly market expectations API (@test-focus-monthly.R#8) 
  4. Error: it should fetch data from monthly market expectations API without start_date (@test-focus-monthly.R#17) 
  5. Error: it should fetch data from monthly market expectations API without end_date (@test-focus-monthly.R#26) 
  6. Error: it should fetch data from quarterly market expectations API (@test-focus-quarterly.R#8) 
  
  Error: testthat unit tests failed
  Execution halted