Running ‘testthat.R’ [25s/44s]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > # Set environmental variable to prevent hang on quitting the `R` session.
  > # Error message:
  > # - `Error while shutting down parallel: unable to terminate some child processes`
  > # See:
  > # - https://github.com/r-lib/processx/issues/310
  > # - https://github.com/r-lib/processx/issues/240
  > # - https://github.com/r-lib/callr/issues/158
  > Sys.setenv(PROCESSX_NOTIFY_OLD_SIGCHLD = "true")
  > 
  > library(testthat)
  > library(parabar)
  > 
  > test_check("parabar")
  [ FAIL 2 | WARN 0 | SKIP 3 | PASS 379 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On Linux (2): 'test-specification.R:123:5', 'test-user-api.R:169:5'
  • Test only runs in interactive contexts. (1): 'test-user-api.R:384:9'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-context.R:74:5'): 'Context' performs operations on the cluster correctly ──
  Error: A task is completed with unread results.
  Backtrace:
       ▆
    1. └─parabar:::tests_set_for_asynchronous_backend_operations(...) at test-context.R:74:5
    2.   └─parabar:::tests_set_for_asynchronous_backend_task_execution(...) at tests/testthat/helpers.R:479:5
    3.     ├─testthat::expect_error(eval(operation), as_text(Exception$async_task_running())) at tests/testthat/helpers.R:358:5
    4.     │ └─testthat:::expect_condition_matching(...)
    5.     │   └─testthat:::quasi_capture(...)
    6.     │     ├─testthat (local) .capture(...)
    7.     │     │ └─base::withCallingHandlers(...)
    8.     │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9.     ├─base::eval(operation)
   10.     │ └─base::eval(operation)
   11.     └─service$apply(`<dbl>`, c(1, 2), `<fn>`, y = 15L, z = 29L, sleep = 0)
   12.       └─private$.backend$apply(x = x, margin = margin, fun = fun, ...)
   13.         └─private$.throw_if_backend_is_busy()
   14.           └─Exception$async_task_completed()
  ── Error ('test-context.R:74:5'): 'Context' performs operations on the cluster correctly ──
  Error: Cannot stop a busy backend when option `stop_forceful = FALSE`.
  Backtrace:
      ▆
   1. └─parabar:::tests_set_for_asynchronous_backend_operations(...) at test-context.R:74:5
   2.   └─service$stop() at tests/testthat/helpers.R:388:9
   3.     └─private$.backend$stop()
   4.       └─private$.stop()
   5.         └─Exception$stop_busy_backend_not_allowed()
  
  [ FAIL 2 | WARN 0 | SKIP 3 | PASS 379 ]
  Error: Test failures
  Execution halted