Running ‘testthat.R’ [25s/45s]
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")
  Saving _problems/test-context-74.R
  Saving _problems/test-context-74.R
  Saving _problems/test-context-74.R
  Saving _problems/test-context-74.R
  [ FAIL 4 | WARN 0 | SKIP 3 | PASS 351 ]
  
  ══ 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 ════════════════════════════════════════════════════════════════
  ── Failure ('test-context.R:74:5'): 'Context' performs operations on the cluster correctly ──
  Expected `service$get_output()` to throw a error.
  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 ./helpers.R:419:5
   3.     └─testthat::expect_error(service$get_output(), as_text(Exception$async_task_running())) at ./helpers.R:367:5
  ── Failure ('test-context.R:74:5'): 'Context' performs operations on the cluster correctly ──
  Expected `eval(operation)` to throw a error.
  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 ./helpers.R:419:5
   3.     └─testthat::expect_error(eval(operation), as_text(Exception$async_task_completed())) at ./helpers.R:373:5
  ── Error ('test-context.R:74:5'): 'Context' performs operations on the cluster correctly ──
  Error: A task is currently running.
  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 ./helpers.R:419:5
   3.     ├─testthat::expect_equal(service$get_output(), expected_output) at ./helpers.R:376:5
   4.     │ └─testthat::quasi_label(enquo(object), label)
   5.     │   └─rlang::eval_bare(expr, quo_get_env(quo))
   6.     └─service$get_output()
   7.       └─private$.backend$get_output(...)
   8.         └─private$.fetch_results()
   9.           └─Exception$async_task_running()
  ── 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 ./helpers.R:388:9
   3.     └─private$.backend$stop()
   4.       └─private$.stop()
   5.         └─Exception$stop_busy_backend_not_allowed()
  
  [ FAIL 4 | WARN 0 | SKIP 3 | PASS 351 ]
  Error:
  ! Test failures.
  Execution halted