Running 'testthat.R' [20m]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(ntdr)
  > 
  > test_check("ntdr")
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 6 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get_ntd.R:45:3'): returns a URL that starts right ──────────────
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `eval(code, test_env)`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Failure when receiving data from the peer [www.transit.dot.gov]: Recv failure: Connection was reset
  Backtrace:
       ▆
    1. ├─testthat::expect_match(get_ntd_url(), regexp = "^https://www.transit.dot.gov/sites/fta.dot.gov/files/") at test-get_ntd.R:45:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─ntdr:::get_ntd_url()
    5.   ├─httr2::resp_body_html(...)
    6.   │ └─httr2:::check_response(resp)
    7.   │   └─httr2:::is_response(resp)
    8.   └─httr2::req_perform(...)
    9.     └─httr2:::handle_resp(req, resp, error_call = error_call)
   10.       └─rlang::cnd_signal(resp)
  ── Error ('test-get_ntd.R:49:3'): URL contains the right terms for different data_types ──
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `eval(code, test_env)`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached [www.transit.dot.gov]: Operation too slow. Less than 1 bytes/sec transferred the last 600 seconds
  Backtrace:
       ▆
    1. ├─testthat::expect_match(get_ntd_url("raw"), regexp = "Raw") at test-get_ntd.R:49:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─ntdr:::get_ntd_url("raw")
    5.   ├─httr2::resp_body_html(...)
    6.   │ └─httr2:::check_response(resp)
    7.   │   └─httr2:::is_response(resp)
    8.   └─httr2::req_perform(...)
    9.     └─httr2:::handle_resp(req, resp, error_call = error_call)
   10.       └─rlang::cnd_signal(resp)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 6 ]
  Error: Test failures
  Execution halted