Skip to content

Commit

Permalink
TESTS: Add more clues, in case there are errors [#7]
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed May 9, 2024
1 parent b957a5f commit c2edb0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: future.mirai
Version: 0.2.0-9000
Version: 0.2.0-9001
Depends:
future
Imports:
Expand Down
5 changes: 4 additions & 1 deletion tests/mirai_cluster,worker-termination.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ if (.Platform$OS.type != "windows") {
res <- tryCatch(value(f), error = identity)
print(res)
stopifnot(inherits(res, "FutureError"))


message("Number of workers: ", nbrOfWorkers())
message("Number of free workers: ", nbrOfFreeWorkers())

stopifnot(
nbrOfWorkers() == all - 1L,
nbrOfFreeWorkers() == free - 1L
Expand Down

0 comments on commit c2edb0c

Please sign in to comment.