File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -536,16 +536,17 @@ test_that("format_dates", {
536536 " ../2021-01-01T00:00:00Z" )
537537 expect_equal(dataRetrieval ::: format_api_dates(end , TRUE ),
538538 " ../2021-01-01" )
539-
539+ #
540540 # Bad test because it assumes a local timezone
541- # end <- c(NA, as.POSIXct("2021-01-01 12:15:00"))
542- # expect_equal(dataRetrieval:::format_api_dates(end),
543- # "../2021-01-01T18:15:00Z")
544-
545- start_end <- as.POSIXct(c(" 2021-01-01 12:15:00" ,
546- " 2022-01-01 16:45" ))
547- expect_equal(dataRetrieval ::: format_api_dates(start_end ),
548- " 2021-01-01T18:15:00Z/2022-01-01T22:45:00Z" )
541+ # This worked locally, but failed on a CI job
542+ # # end <- c(NA, as.POSIXct("2021-01-01 12:15:00"))
543+ # # expect_equal(dataRetrieval:::format_api_dates(end),
544+ # # "../2021-01-01T18:15:00Z")
545+ #
546+ # start_end <- as.POSIXct(c("2021-01-01 12:15:00",
547+ # "2022-01-01 16:45"))
548+ # expect_equal(dataRetrieval:::format_api_dates(start_end),
549+ # "2021-01-01T18:15:00Z/2022-01-01T22:45:00Z")
549550
550551 start_end <- as.POSIXct(c(" 2021-01-01 12:15:00" ,
551552 " 2022-01-01 16:45" ),
You can’t perform that action at this time.
0 commit comments