Running ‘testthat.R’ [9s/23s]
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(mtaOpenData)
  > 
  > test_check("mtaOpenData")
  crul not installed, skipping enable
  HttrAdapter enabled!
  httr2 not installed, skipping enable
  Saving _problems/test-mta_catalog_and_pull_dataset-140.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 80 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-mta_catalog_and_pull_dataset.R:137:3'): mta_pull_dataset input validation errors ──
  Error: MTA Open Data request failed (network unavailable or API slow).
  Try again later or increase `timeout_sec`.
  
  Underlying error: Timeout was reached [data.ny.gov]:
  Connection timed out after 10001 milliseconds
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-mta_catalog_and_pull_dataset.R:137:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─mtaOpenData::mta_pull_dataset(...)
    8.   └─mtaOpenData:::.mta_catalog_tbl()
    9.     └─mtaOpenData:::.mta_dataset_request(...)
   10.       └─mtaOpenData:::.mta_get_json(endpoint, query_list, timeout_sec = timeout_sec)
   11.         └─base::tryCatch(...)
   12.           └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   13.             └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   14.               └─value[[3L]](cond)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 80 ]
  Error:
  ! Test failures.
  Execution halted