Running ‘Test-class.R’ [28s/151s]
  Running ‘check.R’ [5s/16s]
  Running ‘cli_fcn.R’ [2s/3s]
  Running ‘db_state.R’ [3s/5s]
  Running ‘evaluate_expr.R’ [2s/3s]
  Running ‘one-test.R’ [3s/5s]
  Running ‘progress.R’ [2s/2s]
  Running ‘test_db.R’ [3s/5s]
  Running ‘test_plans.R’ [2s/5s]
  Running ‘utils.R’ [2s/3s]
  Running ‘zzz.onLoad.R’ [4s/6s]
Running the tests in ‘tests/test_plans.R’ failed.
Complete output:
  > library(future.tests)
  > library(future)
  > 
  > test_plans <- test_plans()
  > print(test_plans)
  list()
  > 
  > add_test_plan(plan(future:::constant))
  > add_test_plan(plan(sequential))
  > add_test_plan(plan(multisession, workers = 1L))
  > add_test_plan(plan(multisession, workers = 2L))
  > 
  > test_plans <- test_plans()
  > print(test_plans)
  [[1]]
  plan(future:::constant)
  
  [[2]]
  plan(sequential)
  
  [[3]]
  plan(multisession, workers = 1L)
  
  [[4]]
  plan(multisession, workers = 2L)
  
  > stopifnot(length(test_plans) == 4L)
  > 
  > res <- along_test_plans({ 42L })
  Evaluating expression under future plan #1 of 4 ...
  constant:
  - args: function (value, ...)
  - tweaked: FALSE
  - call: plan(future:::constant)
  Evaluating expression under future plan #1 of 4 ... DONE
  Evaluating expression under future plan #2 of 4 ...
  sequential:
  - args: function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = NULL, globals = TRUE, local = TRUE, earlySignal = FALSE, label = NULL, ...)
  - tweaked: FALSE
  - call: plan(sequential)
  Evaluating expression under future plan #2 of 4 ... DONE
  Evaluating expression under future plan #3 of 4 ...
  multisession:
  - args: function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = NULL, globals = TRUE, persistent = FALSE, workers = 1L, gc = FALSE, earlySignal = FALSE, label = NULL, ...)
  - tweaked: TRUE
  - call: plan(multisession, workers = 1L)
  Evaluating expression under future plan #3 of 4 ... DONE
  Evaluating expression under future plan #4 of 4 ...
  Error in socketConnection("localhost", port = port, server = TRUE, blocking = TRUE,  : 
    Failed to launch and connect to R worker on local machine 'localhost' from local machine 'gimli2'.
   * The error produced by socketConnection() was: 'cannot open the connection'
   * In addition, socketConnection() produced 1 warning(s):
     - Warning #1: 'port 33711 cannot be opened' (which suggests that this port is either already occupied by another process or blocked by the firewall on your local machine)
   * The localhost socket connection that failed to connect to the R worker used port 33711 using a communication timeout of 120 seconds and a connection timeout of 120 seconds.
   * Worker launch call: '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/bin/Rscript' --default-packages=datasets,utils,grDevices,graphics,stats,methods -e '#label=test_plans.R:16925:gimli2:hornik' -e 'try(suppressWarnings(cat(Sys.getpid(),file="/home/hornik/tmp/scratch/Rtmp6bnJ8Y/future.parent=16925.421d5bc92167.pid")), silent = TRUE)' -e 'parallel:::.slaveRSOCK()' MASTER=localhost PORT=33711 OUT=/dev/null TIMEOUT=120 XDR=TRUE.
   * Worker (PID 18956) was successfully killed: TRUE
   * Troubleshooting suggestions:
     - Suggestion #1: Set 'verbose=TRUE' to see more details.
     - Suggestion #2: Set 'outfile=NULL' to see output from worker.
  Calls: along_test_plans ... tryCatchList -> tryCatchOne -> <Anonymous> -> <Anonymous>
  In addition: Warning message:
  In socketConnection("localhost", port = port, server = TRUE, blocking = TRUE,  :
    port 33711 cannot be opened
  Execution halted