Running 'testthat.R' [32s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(lacrmr)
  Loading required package: magrittr
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  > library(httptest)
  > library(mockery)
  > 
  > test_check("lacrmr")
  [ FAIL 3 | WARN 0 | SKIP 4 | PASS 3 ]
  
  ══ Skipped tests (4) ═══════════════════════════════════════════════════════════
  • On CRAN (4): 'test-credentials.R:4:3', 'test-credentials.R:12:3',
    'test-credentials.R:20:3', 'test-credentials.R:27:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cleaning.R:12:3'): List are removed from the pipeline report ───
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [api.lessannoyingcrm.com]: SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─lacrmr::get_pipeline_report(...) at test-cleaning.R:12:3
    2. │ ├─base::tryCatch(...)
    3. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    4. │ └─lacrmr:::get_request(...)
    5. │   └─httr::GET(...)
    6. │     └─httr:::request_perform(req, hu$handle$handle)
    7. │       ├─httr:::request_fetch(req$output, req$url, handle)
    8. │       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
    9. │         └─curl::curl_fetch_memory(url, handle = handle)
   10. └─curl:::raise_libcurl_error(...)
  ── Error ('test-cleaning.R:30:3'): Lists are removed from the contacts information ──
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [api.lessannoyingcrm.com]: SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─lacrmr::get_contact_information(...) at test-cleaning.R:30:3
    2. │ ├─base::tryCatch(...)
    3. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    4. │ └─lacrmr:::get_request(...)
    5. │   └─httr::GET(...)
    6. │     └─httr:::request_perform(req, hu$handle$handle)
    7. │       ├─httr:::request_fetch(req$output, req$url, handle)
    8. │       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
    9. │         └─curl::curl_fetch_memory(url, handle = handle)
   10. └─curl:::raise_libcurl_error(...)
  ── Failure ('test-error-warning-msg.R:10:3'): Invalid credentials ──────────────
  `get_account_information(user_code = "6A6E88", api_token = "57102821")` threw an error with unexpected message.
  Expected match: "Invalid user credentials"
  Actual message: "Timeout was reached [api.lessannoyingcrm.com]: SSL/TLS connection timeout"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-error-warning-msg.R:10:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─lacrmr::get_account_information(user_code = "6A6E88", api_token = "57102821")
    7. │ ├─base::tryCatch(...)
    8. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9. │ └─lacrmr:::get_request(...)
   10. │   └─httr::GET(...)
   11. │     └─httr:::request_perform(req, hu$handle$handle)
   12. │       ├─httr:::request_fetch(req$output, req$url, handle)
   13. │       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   14. │         └─curl::curl_fetch_memory(url, handle = handle)
   15. └─curl:::raise_libcurl_error(...)
  
  [ FAIL 3 | WARN 0 | SKIP 4 | PASS 3 ]
  Error: Test failures
  Execution halted