Skip to content

Commit 8af9cbc

Browse files
committed
disable mirai tests on windws r < 4.2
1 parent c6c1950 commit 8af9cbc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/testthat/test-write_to_disk.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ test_that("inspire_grid_from_extent streams correctly to disk with mirai backend
66
skip_if_not_installed("mirai")
77
# The `nc` object from setup.R requires `sf`
88
skip_if_not_installed("sf")
9+
# Skip on Windows with R < 4.2 due to later/promises event loop cleanup issues
10+
# that cause the R process to crash during test completion
11+
skip_if(
12+
getRversion() < "4.2.0" && .Platform$OS.type == "windows",
13+
"Mirai streaming tests skipped on Windows with R < 4.2 (event loop issues)"
14+
)
915

1016
# 2. SETUP ----
1117
# Assumes `nc` and `CELLSIZE` are loaded from `tests/testthat/setup.R`

0 commit comments

Comments
 (0)