Skip to content

Commit f0f5326

Browse files
committed
Min clustermq version in tests
1 parent 890e63a commit f0f5326

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

tests/testthat/test-1-keras.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ test_with_dir("custom keras format", {
5252

5353
test_with_dir("keras + clustermq", {
5454
skip_on_cran()
55-
skip_if_not_installed("clustermq")
55+
skip_if_not_installed("clustermq", minimum_version = "0.9.1")
5656
skip_if_not_installed("keras")
5757
skip_on_os("windows")
5858
if ("package:clustermq" %in% search()) {

tests/testthat/test-6-hpc.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ test_with_dir("caching arg and column", {
234234

235235
test_with_dir("custom caching column and clustermq", {
236236
skip_on_cran()
237-
skip_if_not_installed("clustermq")
237+
skip_if_not_installed("clustermq", minimum_version = "0.9.1")
238238
skip_on_os("windows")
239239
if ("package:clustermq" %in% search()) {
240240
detach("package:clustermq", unload = TRUE) # nolint

tests/testthat/test-8-decorated-storr.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ test_with_dir("format file hpc checksums (#1168)", {
11901190
expect_equal(nchar(out), c(16L, 16L))
11911191
clean(destroy = TRUE)
11921192
make(plan, parallelism = "future", caching = "worker")
1193-
skip_if_not_installed("clustermq")
1193+
skip_if_not_installed("clustermq", minimum_version = "0.9.1")
11941194
skip_on_os("windows")
11951195
options(clustermq.scheduler = "multicore")
11961196
for (caching in c("main", "worker")) {

tests/testthat/test-9-clustermq.R

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
drake_context("clustermq")
22

33
test_with_dir("clustermq parallelism for CRAN", {
4-
skip_if_not_installed("clustermq")
4+
skip_if_not_installed("clustermq", minimum_version = "0.9.1")
55
skip_on_os("windows")
66
options(clustermq.scheduler = "multicore")
77
plan <- drake_plan(x = {
@@ -22,7 +22,7 @@ test_with_dir("clustermq parallelism for CRAN", {
2222

2323
test_with_dir("clustermq parallelism", {
2424
skip_on_cran()
25-
skip_if_not_installed("clustermq")
25+
skip_if_not_installed("clustermq", minimum_version = "0.9.1")
2626
skip_on_os("windows")
2727
if ("package:clustermq" %in% search()) {
2828
detach("package:clustermq", unload = TRUE) # nolint
@@ -91,7 +91,7 @@ test_with_dir("clustermq parallelism", {
9191

9292
test_with_dir("No hpc targets? No workers.", {
9393
skip_on_cran()
94-
skip_if_not_installed("clustermq")
94+
skip_if_not_installed("clustermq", minimum_version = "0.9.1")
9595
skip_on_os("windows")
9696
if ("package:clustermq" %in% search()) {
9797
detach("package:clustermq", unload = TRUE) # nolint
@@ -117,7 +117,7 @@ test_with_dir("No hpc targets? No workers.", {
117117

118118
test_with_dir("All hpc targets up to date? No workers.", {
119119
skip_on_cran()
120-
skip_if_not_installed("clustermq")
120+
skip_if_not_installed("clustermq", minimum_version = "0.9.1")
121121
skip_on_os("windows")
122122
if ("package:clustermq" %in% search()) {
123123
detach("package:clustermq", unload = TRUE) # nolint
@@ -153,7 +153,7 @@ test_with_dir("All hpc targets up to date? No workers.", {
153153

154154
test_with_dir("Start off with non-HPC targets, then go to HPC targets.", {
155155
skip_on_cran()
156-
skip_if_not_installed("clustermq")
156+
skip_if_not_installed("clustermq", minimum_version = "0.9.1")
157157
skip_on_os("windows")
158158
if ("package:clustermq" %in% search()) {
159159
detach("package:clustermq", unload = TRUE) # nolint

tests/testthat/test-9-dynamic.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ test_with_dir("dyn loadd/readd with NULL subtargets (#1139)", {
12841284
test_with_dir("dynamic hpc", {
12851285
skip_on_cran()
12861286
skip_on_os("windows")
1287-
skip_if_not_installed("clustermq")
1287+
skip_if_not_installed("clustermq", minimum_version = "0.9.1")
12881288
skip_if_not_installed("future")
12891289
if ("package:clustermq" %in% search()) {
12901290
detach("package:clustermq", unload = TRUE) # nolint

0 commit comments

Comments
 (0)