Running 'testthat.R' [12s]
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(wbwdi)
  > 
  > test_check("wbwdi")
  ! Failed to retrieve data from the World Bank API for request
  https://localhost:9999/countries?format=json&per_page=10000. Error message:
  Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`:
  ! Could not connect to server [localhost]: Failed to connect to localhost port
  9999 after 2395 ms: Could not connect to server
  ! Failed to retrieve data from the World Bank API for request
  https://localhost:9999/countries?format=json&per_page=10000. Error message:
  Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`:
  ! Could not connect to server [localhost]: Failed to connect to localhost port
  9999 after 2249 ms: Could not connect to server
  ! Failed to retrieve data from the World Bank API for request
  https://api.worldbank.org/v2/xx/country/USA/indicator/NY.GDP.MKTP.CD?format=json&per_page=10000&date=%3A.
  Error message: HTTP 502 Bad Gateway.
  Saving _problems/tests-wdi_get-8.R
  ! Failed to retrieve data from the World Bank API for request
  https://api.worldbank.org/v2/xx/countries/all?format=json&per_page=1000. Error
  message: HTTP 502 Bad Gateway.
  Saving _problems/tests-wdi_get_entities-4.R
  ! Failed to retrieve data from the World Bank API for request
  https://api.worldbank.org/v2/xx/indicators?format=json&per_page=32500. Error
  message: HTTP 502 Bad Gateway.
  Saving _problems/tests-wdi_get_indicators-4.R
  ! Failed to retrieve data from the World Bank API for request
  https://api.worldbank.org/v2/xx/lendingTypes?format=json&per_page=10000. Error
  message: HTTP 502 Bad Gateway.
  Saving _problems/tests-wdi_get_lending_types-4.R
  ! Failed to retrieve data from the World Bank API for request
  https://api.worldbank.org/v2/xx/region?format=json&per_page=10000. Error
  message: HTTP 502 Bad Gateway.
  Saving _problems/tests-wdi_get_regions-4.R
  ! Failed to retrieve data from the World Bank API for request
  https://api.worldbank.org/v2/xx/sources?format=json&per_page=10000. Error
  message: HTTP 502 Bad Gateway.
  Saving _problems/tests-wdi_get_sources-4.R
  ! Failed to retrieve data from the World Bank API for request
  https://api.worldbank.org/v2/xx/topics?format=json&per_page=10000. Error
  message: HTTP 502 Bad Gateway.
  Saving _problems/tests-wdi_get_topics-4.R
  [ FAIL 7 | WARN 0 | SKIP 33 | PASS 122 ]
  
  ══ Skipped tests (33) ══════════════════════════════════════════════════════════
  • On CRAN (33): 'tests-perform_request.R:26:3', 'tests-perform_request.R:40:3',
    'tests-perform_request.R:52:3', 'tests-perform_request.R:65:3',
    'tests-perform_request.R:77:3', 'tests-perform_request.R:96:3',
    'tests-perform_request.R:108:3', 'tests-perform_request.R:120:3',
    'tests-perform_request.R:132:3', 'tests-perform_request.R:159:3',
    'tests-perform_request.R:181:3', 'tests-perform_request.R:197:3',
    'tests-perform_request.R:241:3', 'tests-wdi_get.R:60:3',
    'tests-wdi_get.R:78:3', 'tests-wdi_get.R:97:3', 'tests-wdi_get.R:104:3',
    'tests-wdi_get.R:114:3', 'tests-wdi_get.R:124:3', 'tests-wdi_get.R:154:3',
    'tests-wdi_get_entities.R:20:3', 'tests-wdi_get_entities.R:94:3',
    'tests-wdi_get_income_levels.R:2:3', 'tests-wdi_get_income_levels.R:33:3',
    'tests-wdi_get_indicators.R:20:3', 'tests-wdi_get_indicators.R:69:3',
    'tests-wdi_get_languages.R:2:3', 'tests-wdi_get_lending_types.R:8:3',
    'tests-wdi_get_lending_types.R:64:3', 'tests-wdi_get_regions.R:8:3',
    'tests-wdi_get_regions.R:80:3', 'tests-wdi_get_topics.R:8:3',
    'tests-wdi_get_topics.R:71:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('tests-wdi_get.R:2:3'): wdi_get_handles invalid language input ─────
  Expected `wdi_get(entities = "USA", indicators = "NY.GDP.MKTP.CD", language = "xx")` to throw a error.
  ── Failure ('tests-wdi_get_entities.R:2:3'): wdi_get_entities handles invalid language input ──
  Expected `wdi_get_entities(language = "xx")` to throw a error.
  ── Failure ('tests-wdi_get_indicators.R:2:3'): wdi_get_indicators handles ivalid language input ──
  Expected `wdi_get_indicators(language = "xx")` to throw a error.
  ── Failure ('tests-wdi_get_lending_types.R:2:3'): wdi_get_lending_types handles invalid language input ──
  Expected `wdi_get_lending_types(language = "xx")` to throw a error.
  ── Failure ('tests-wdi_get_regions.R:2:3'): wdi_get_regions handles invalid language input ──
  Expected `wdi_get_regions(language = "xx")` to throw a error.
  ── Failure ('tests-wdi_get_sources.R:2:3'): wdi_get_sources handles invalid language input ──
  Expected `wdi_get_sources(language = "xx")` to throw a error.
  ── Failure ('tests-wdi_get_topics.R:2:3'): wdi_get_topics handles invalid language input ──
  Expected `wdi_get_topics(language = "xx")` to throw a error.
  
  [ FAIL 7 | WARN 0 | SKIP 33 | PASS 122 ]
  Error:
  ! Test failures.
  Execution halted