Skip to content

Commit

Permalink
set timezone in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
felixcheung committed May 7, 2017
1 parent 500436b commit 83b48f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/pkg/inst/tests/testthat/test_sparkSQL.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ mockLinesMapType <- c("{\"name\":\"Bob\",\"info\":{\"age\":16,\"height\":176.5}}
mapTypeJsonPath <- tempfile(pattern = "sparkr-test", fileext = ".tmp")
writeLines(mockLinesMapType, mapTypeJsonPath)

if (.Platform$OS.type == "windows") {
Sys.setenv(TZ = "GMT")
}

test_that("calling sparkRSQL.init returns existing SQL context", {
skip_on_cran()

Expand Down

0 comments on commit 83b48f8

Please sign in to comment.