Running ‘testthat.r’ [11s/105s]
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(jobqueue)
  > 
  > test_check("jobqueue")
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 122 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-queue.r:13:3'): basic ────────────────────────────────────────
  job$result (`actual`) not equal to 4 (`expected`).
  
  `actual` is an S3 object of class <interrupt/condition>, a list
  `expected` is a double vector (4)
  ── Failure ('test-queue.r:18:3'): basic ────────────────────────────────────────
  job$result (`actual`) not equal to 8 (`expected`).
  
  `actual` is an S3 object of class <timeout/interrupt/condition>, a list
  `expected` is a double vector (8)
  ── Failure ('test-queue.r:21:3'): basic ────────────────────────────────────────
  q$state (`actual`) not equal to "idle" (`expected`).
  
  `actual`:   "error"
  `expected`: "idle" 
  ── Failure ('test-queue.r:22:3'): basic ────────────────────────────────────────
  length(q$workers) (`actual`) not equal to 1L (`expected`).
  
    `actual`: 0
  `expected`: 1
  ── Failure ('test-queue.r:115:3'): max_cpus ────────────────────────────────────
  map(q$jobs, "state") (`actual`) not equal to c(rep("running", 2), rep("queued", 2)) (`expected`).
  
  `actual`:   "queued"                             
  `expected`: "running" "running" "queued" "queued"
  ── Failure ('test-queue.r:116:3'): max_cpus ────────────────────────────────────
  map(q$workers, "state") (`actual`) not equal to c("busy", "busy", "idle") (`expected`).
  
  `actual` is NULL
  `expected` is a character vector ('busy', 'busy', 'idle')
  ── Error ('test-queue.r:125:3'): interrupt ─────────────────────────────────────
  Error in `q_initialize(self, private, globals, packages, init, max_cpus, 
      workers, timeout, hooks, reformat, signal, cpus, stop_id, 
      copy_id, wait)`: Unable to start Queue
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-queue.r:125:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─Queue$new(workers = 1L, timeout = 10, wait = 120)
   10.   └─jobqueue (local) initialize(...)
   11.     └─jobqueue:::q_initialize(...)
   12.       └─cli::cli_abort("Unable to start Queue")
   13.         └─rlang::abort(...)
  ── Error ('test-worker.r:28:3'): worker ────────────────────────────────────────
  Error in `w_run(self, private, job)`: Worker not idle
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-worker.r:28:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─w$run(...)
   10.   └─jobqueue:::w_run(self, private, job)
   11.     └─cli::cli_abort("Worker not idle")
   12.       └─rlang::abort(...)
  
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 122 ]
  Error: Test failures
  Execution halted