Running ‘testthat.R’ [13s/14s]
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(phsopendata)
  > 
  > test_check("phsopendata")
  Starting 2 test processes.
  > test-get_latest_resource_id.R: Error in curl::curl_fetch_memory(url, handle = handle): Failure when receiving data from the peer [www.opendata.nhs.scot]:
  > test-get_latest_resource_id.R: Recv failure: Connection reset by peer
  > test-get_latest_resource_id.R: Request failed [ERROR]. Retrying in 1 seconds...
  > test-get_latest_resource_id.R: Error in curl::curl_fetch_memory(url, handle = handle): Failure when receiving data from the peer [www.opendata.nhs.scot]:
  > test-get_latest_resource_id.R: Recv failure: Connection reset by peer
  > test-get_latest_resource_id.R: Request failed [ERROR]. Retrying in 1.7 seconds...
  Saving _problems/test-get_latest_resource_id-2.R
  [ FAIL 1 | WARN 0 | SKIP 16 | PASS 51 ]
  
  ══ Skipped tests (16) ══════════════════════════════════════════════════════════
  • On CRAN (16): 'test-add_context.R:1:1', 'test-dump_download.R:1:1',
    'test-error_check.R:1:1', 'test-get_dataset.R:1:1',
    'test-get_dataset_additional_info.R:1:1', 'test-get_dataset_context.R:1:1',
    'test-get_latest_resource.R:1:1', 'test-get_resource.R:1:1',
    'test-get_resource_context.R:1:1', 'test-get_resource_dump.R:1:1',
    'test-get_resource_sql.R:1:1', 'test-list_datasets.R:1:1',
    'test-list_resources.R:1:1', 'test-parse_error.R:1:1', 'test-phs_GET.R:1:1',
    'test-suggest_dataset_names.R:1:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-get_latest_resource_id.R:2:3'): returns data for a dataset that is listed ──
  Expected `get_latest_resource("gp-practice-populations")` not to throw any errors.
  Actually got a <curl_error_recv_error> with message:
    Failure when receiving data from the peer [www.opendata.nhs.scot]:
    Recv failure: Connection reset by peer
  
  [ FAIL 1 | WARN 0 | SKIP 16 | PASS 51 ]
  Error:
  ! Test failures.
  Execution halted