Skip to content

Commit 83b48f8

Browse files
committed
set timezone in windows
1 parent 500436b commit 83b48f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

R/pkg/inst/tests/testthat/test_sparkSQL.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ mockLinesMapType <- c("{\"name\":\"Bob\",\"info\":{\"age\":16,\"height\":176.5}}
9696
mapTypeJsonPath <- tempfile(pattern = "sparkr-test", fileext = ".tmp")
9797
writeLines(mockLinesMapType, mapTypeJsonPath)
9898

99+
if (.Platform$OS.type == "windows") {
100+
Sys.setenv(TZ = "GMT")
101+
}
102+
99103
test_that("calling sparkRSQL.init returns existing SQL context", {
100104
skip_on_cran()
101105

0 commit comments

Comments
 (0)