Running 'testthat.R' [12s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(lifx)
  > 
  > test_check("lifx")
  Saving _problems/test-lx_color_name-9.R
  [ FAIL 1 | WARN 0 | SKIP 11 | PASS 5 ]
  
  ══ Skipped tests (11) ══════════════════════════════════════════════════════════
  • no 'LIFX' api token in renvironment (11): 'test-with_token_only.R:7:27',
    'test-with_token_only.R:7:27', 'test-with_token_only.R:7:27',
    'test-with_token_only.R:7:27', 'test-with_token_only.R:7:27',
    'test-with_token_only.R:7:27', 'test-with_token_only.R:7:27',
    'test-with_token_only.R:7:27', 'test-with_token_only.R:7:27',
    'test-with_token_only.R:7:27', 'test-with_token_only.R:7:27'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-lx_color_name.R:9:23'): selector string correct ──────────────
  `lx_color_name(hue = 255, token = "NOT A GOOD TOKEN")` threw an error with unexpected message.
  Expected match: "bad token - could not check color"
  Actual message: "Timeout was reached [api.lifx.com]:\nConnection timed out after 10008 milliseconds"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-lx_color_name.R:9:23
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─lifx::lx_color_name(hue = 255, token = "NOT A GOOD TOKEN")
    7. │ └─lifx::lx_check_color(color_string, token = token)
    8. │   └─httr::GET(url, header)
    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(...)
  
  [ FAIL 1 | WARN 0 | SKIP 11 | PASS 5 ]
  Error:
  ! Test failures.
  Execution halted