library(pizzarr) make_array <- function(shape = c(4, 4), chunks = c(2, 2), dtype = "1 on Windows creates cluster", { skip_on_os(c("linux", "mac", "solaris")) ps <- get_parallel_settings(on_windows = TRUE, parallel_option = 2L) expect_true(ps$close) parallel::stopCluster(ps$cl) }) test_that("get_parallel_settings with on_windows=TRUE and integer=1 creates cluster", { skip_on_os(c("linux", "mac")) ps <- get_parallel_settings(on_windows = TRUE, parallel_option = 1L) if (ps$close) parallel::stopCluster(ps$cl) expect_true(TRUE) })