Skip to content

Commit 4bcca61

Browse files
covr: Disable some cluster checks - false positive with covr
1 parent b998338 commit 4bcca61

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/cluster,worker-termination.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ message("Library paths: ", commaq(.libPaths()))
1414
message("Package path: ", sQuote(system.file(package = "future")))
1515
message("TMPDIR for parallel workers: ", sQuote(Sys.getenv("TMPDIR")))
1616

17-
types <- "PSOCK"
18-
17+
types <- NULL
18+
if (!covr_testing) types <- c(types, "PSOCK")
1919
if (supportsMulticore()) types <- c(types, "FORK")
2020

2121
pid <- Sys.getpid()

tests/cluster-missing-future-pkg.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ message("*** cluster() ...")
66
message("Library paths: ", commaq(.libPaths()))
77
message("Package path: ", sQuote(system.file(package = "future")))
88

9-
types <- "PSOCK"
10-
9+
types <- NULL
10+
if (!covr_testing) types <- c(types, "PSOCK")
1111
if (supportsMulticore()) types <- c(types, "FORK")
1212

1313
setupClusterWithoutPkgs <- function(type = "PSOCK", withouts = c("future")) {

0 commit comments

Comments
 (0)