Running ‘testthat.R’ [3s/70s]
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(cvdprevent)
  > 
  > test_check("cvdprevent")
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 27 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-cvd_api_functions.R:8:3'): cvd_time_period_list works ────────
  Expected `test <- cvd_time_period_list()` to run without any errors.
  i Actually got a <httr2_failure> with text:
    Failed to perform HTTP request.
    Caused by error in `curl::curl_fetch_memory()`:
    ! Timeout was reached [api.cvdprevent.nhs.uk]:
    Connection timed out after 10001 milliseconds
  ── Error ('test-cvd_api_functions.R:11:3'): cvd_time_period_list works ─────────
  Error in `eval(code, test_env)`: object 'test' not found
  Backtrace:
      ▆
   1. └─testthat::expect_gte(max(test$TimePeriodID), 17) at test-cvd_api_functions.R:11:3
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Failure ('test-cvd_api_functions.R:17:3'): cvd_time_period_system_levels works ──
  Expected `test <- cvd_time_period_system_levels()` to run without any errors.
  i Actually got a <httr2_failure> with text:
    Failed to perform HTTP request.
    Caused by error in `curl::curl_fetch_memory()`:
    ! Timeout was reached [api.cvdprevent.nhs.uk]:
    Connection timed out after 10002 milliseconds
  ── Failure ('test-cvd_api_functions.R:24:3'): cvd_area_system_level works ──────
  Expected `test <- cvd_area_system_level()` to run without any errors.
  i Actually got a <httr2_failure> with text:
    Failed to perform HTTP request.
    Caused by error in `curl::curl_fetch_memory()`:
    ! Timeout was reached [api.cvdprevent.nhs.uk]:
    Connection timed out after 10002 milliseconds
  ── Failure ('test-cvd_api_functions.R:32:3'): cvd_area_system_level_time_periods works ──
  Expected `test <- cvd_area_system_level_time_periods()` to run without any errors.
  i Actually got a <httr2_failure> with text:
    Failed to perform HTTP request.
    Caused by error in `curl::curl_fetch_memory()`:
    ! Timeout was reached [api.cvdprevent.nhs.uk]:
    Connection timed out after 10002 milliseconds
  ── Failure ('test-cvd_api_functions.R:39:3'): cvd_area_list works ──────────────
  Expected `test <- cvd_area_list(system_level_id = 2)` to run without any errors.
  i Actually got a <httr2_failure> with text:
    Failed to perform HTTP request.
    Caused by error in `curl::curl_fetch_memory()`:
    ! Timeout was reached [api.cvdprevent.nhs.uk]:
    Connection timed out after 10004 milliseconds
  ── Failure ('test-cvd_api_functions.R:46:3'): cvd_area_details works ───────────
  Expected `test <- cvd_area_details()` to run without any errors.
  i Actually got a <httr2_failure> with text:
    Failed to perform HTTP request.
    Caused by error in `curl::curl_fetch_memory()`:
    ! Timeout was reached [api.cvdprevent.nhs.uk]:
    Connection timed out after 10001 milliseconds
  ── Error ('test-cvd_api_functions.R:49:3'): cvd_area_details works ─────────────
  Error in `eval(code, test_env)`: object 'test' not found
  Backtrace:
      ▆
   1. └─testthat::expect_named(test, c("area_details")) at test-cvd_api_functions.R:49:3
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 27 ]
  Error: Test failures
  Execution halted