Running ‘testthat.R’ [2s/123s]
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 ═══════════════════════════════════════════════════════════════
  • On CRAN (4)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-cleaning.R:12:3): List are removed from the pipeline report ─────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.lessannoyingcrm.com] Resolving timed out after 10000 milliseconds
  Backtrace:
      ▆
   1. └─lacrmr::get_pipeline_report(...) at test-cleaning.R:12:2
   2.   ├─base::tryCatch(...)
   3.   │ └─base 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)
  ── Error (test-cleaning.R:30:3): Lists are removed from the contacts information ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.lessannoyingcrm.com] Resolving timed out after 10000 milliseconds
  Backtrace:
      ▆
   1. └─lacrmr::get_contact_information(...) at test-cleaning.R:30:2
   2.   ├─base::tryCatch(...)
   3.   │ └─base 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)
  ── 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] Resolving timed out after 10000 milliseconds"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-error-warning-msg.R:10:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat .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 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)
  
  [ FAIL 3 | WARN 0 | SKIP 4 | PASS 3 ]
  Error: Test failures
  Execution halted