Skip to content

Commit 133ed2b

Browse files
authored
tests: mirai encapsulation (#454)
1 parent 58b118e commit 133ed2b

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Suggests:
6363
igraph,
6464
jsonlite,
6565
knitr,
66+
mirai,
6667
mlr3tuning (>= 1.0.0),
6768
progress,
6869
rmarkdown,

tests/testthat/setup.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ lg$set_threshold("warn")
1313

1414
old_plan = future::plan()
1515
future::plan("sequential")
16+
17+
mirai::daemons(1, .compute = "mlr3_encapsulation")

tests/testthat/teardown.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
lg$set_threshold(old_threshold)
22
future::plan(old_plan)
3+
4+
mirai::daemons(0, .compute = "mlr3_encapsulation")

0 commit comments

Comments
 (0)