Skip to content

Commit

Permalink
[SPARK-20626][SPARKR] address date test warning with timezone on windows
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

set timezone on windows

## How was this patch tested?

unit test, AppVeyor

Author: Felix Cheung <[email protected]>

Closes apache#17892 from felixcheung/rtimestamptest.
  • Loading branch information
felixcheung authored and liyichao committed May 24, 2017
1 parent 43d7363 commit c5389f6
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 c5389f6

Please sign in to comment.