Running 'testthat.R' [85s]
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(ColombiAPI)
  > 
  > test_check("ColombiAPI")
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  Datasets available in the 'ColombiAPI' package:
  Datasets available in the 'ColombiAPI' package:
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 156 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get_Colombia_info.R:36:3'): Función get_Colombia_info devuelve datos esperados ──
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [api-colombia.com]: Connection timed out after 10012 milliseconds
  Backtrace:
      ▆
   1. ├─ColombiAPI::get_Colombia_info() at test-get_Colombia_info.R:36:3
   2. │ └─httr::GET("https://api-colombia.com/api/v1/Country/Colombia")
   3. │   └─httr:::request_perform(req, hu$handle$handle)
   4. │     ├─httr:::request_fetch(req$output, req$url, handle)
   5. │     └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6. │       └─curl::curl_fetch_memory(url, handle = handle)
   7. └─curl:::raise_libcurl_error(...)
  ── Error ('test-get_Colombia_info.R:49:3'): Función get_Colombia_info devuelve un data frame ──
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [api-colombia.com]: Connection timed out after 10001 milliseconds
  Backtrace:
      ▆
   1. ├─ColombiAPI::get_Colombia_info() at test-get_Colombia_info.R:49:3
   2. │ └─httr::GET("https://api-colombia.com/api/v1/Country/Colombia")
   3. │   └─httr:::request_perform(req, hu$handle$handle)
   4. │     ├─httr:::request_fetch(req$output, req$url, handle)
   5. │     └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6. │       └─curl::curl_fetch_memory(url, handle = handle)
   7. └─curl:::raise_libcurl_error(...)
  ── Error ('test-get_airports_list.R:26:3'): Función get_airports_list devuelve datos esperados ──
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [api-colombia.com]: Connection timed out after 10009 milliseconds
  Backtrace:
      ▆
   1. ├─ColombiAPI::get_airports_list() at test-get_airports_list.R:26:3
   2. │ └─httr::GET(url_airports_001)
   3. │   └─httr:::request_perform(req, hu$handle$handle)
   4. │     ├─httr:::request_fetch(req$output, req$url, handle)
   5. │     └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6. │       └─curl::curl_fetch_memory(url, handle = handle)
   7. └─curl:::raise_libcurl_error(...)
  ── Error ('test-get_airports_list.R:38:3'): Función get_airports_list devuelve un data frame ──
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [api-colombia.com]: Connection timed out after 10008 milliseconds
  Backtrace:
      ▆
   1. ├─ColombiAPI::get_airports_list() at test-get_airports_list.R:38:3
   2. │ └─httr::GET(url_airports_001)
   3. │   └─httr:::request_perform(req, hu$handle$handle)
   4. │     ├─httr:::request_fetch(req$output, req$url, handle)
   5. │     └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6. │       └─curl::curl_fetch_memory(url, handle = handle)
   7. └─curl:::raise_libcurl_error(...)
  ── Failure ('test-get_airports_list.R:44:3'): Función get_airports_list maneja errores de API ──
  `get_airports_list()` threw an unexpected error.
  Message: Timeout was reached [api-colombia.com]: Connection timed out after 10011 milliseconds
  Class:   curl_error_operation_timedout/curl_error/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(get_airports_list(), NA) at test-get_airports_list.R:44: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. ├─ColombiAPI::get_airports_list()
    8. │ └─httr::GET(url_airports_001)
    9. │   └─httr:::request_perform(req, hu$handle$handle)
   10. │     ├─httr:::request_fetch(req$output, req$url, handle)
   11. │     └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12. │       └─curl::curl_fetch_memory(url, handle = handle)
   13. └─curl:::raise_libcurl_error(...)
  ── Failure ('test-get_airports_list.R:49:3'): Función get_airports_list maneja errores de conexión ──
  `get_airports_list()` threw an unexpected error.
  Message: Timeout was reached [api-colombia.com]: Connection timed out after 10014 milliseconds
  Class:   curl_error_operation_timedout/curl_error/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(get_airports_list(), NA) at test-get_airports_list.R:49: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. ├─ColombiAPI::get_airports_list()
    8. │ └─httr::GET(url_airports_001)
    9. │   └─httr:::request_perform(req, hu$handle$handle)
   10. │     ├─httr:::request_fetch(req$output, req$url, handle)
   11. │     └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12. │       └─curl::curl_fetch_memory(url, handle = handle)
   13. └─curl:::raise_libcurl_error(...)
  ── Error ('test-get_departments_list.R:25:3'): Función get_departments_list devuelve datos esperados ──
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [api-colombia.com]: Connection timed out after 10006 milliseconds
  Backtrace:
      ▆
   1. ├─ColombiAPI::get_departments_list() at test-get_departments_list.R:25:3
   2. │ └─httr::GET(url_departments_001)
   3. │   └─httr:::request_perform(req, hu$handle$handle)
   4. │     ├─httr:::request_fetch(req$output, req$url, handle)
   5. │     └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6. │       └─curl::curl_fetch_memory(url, handle = handle)
   7. └─curl:::raise_libcurl_error(...)
  
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 156 ]
  Error: Test failures
  Execution halted