Running ‘testthat.R’ [5s/10s]
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(KrakenR)
  > 
  > test_check("KrakenR")
  Saving _problems/test-getStatus-5.R
  Saving _problems/test-getStatus-12.R
  Saving _problems/test-getStatus-28.R
  [ FAIL 3 | WARN 3 | SKIP 0 | PASS 91 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-getStatus.R:5:3'): getStatus returns both status and timestamp by default ──
  Error in `getStatus()`: API returned the following error(s): E, General, UNAVAILABLE
  Backtrace:
      ▆
   1. └─KrakenR::getStatus() at test-getStatus.R:5:3
  ── Error ('test-getStatus.R:12:3'): getStatus returns only the status when specified ──
  Error in `getStatus("status")`: API returned the following error(s): E, General, UNAVAILABLE
  Backtrace:
      ▆
   1. └─KrakenR::getStatus("status") at test-getStatus.R:12:3
  ── Error ('test-getStatus.R:28:3'): getStatus throws error for invalid 'data' parameter ──
  Error in `getStatus("invalid_data")`: API returned the following error(s): E, General, UNAVAILABLE
  Backtrace:
      ▆
   1. ├─testthat::expect_error(getStatus("invalid_data"), "Invalid value for 'data' parameter") at test-getStatus.R:28: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. └─KrakenR::getStatus("invalid_data")
  
  [ FAIL 3 | WARN 3 | SKIP 0 | PASS 91 ]
  Error:
  ! Test failures.
  Execution halted