Skip to content

Commit db921fc

Browse files
committed
Removed bad test because it assumes a local timezone. Kept it in there to remind myself.
1 parent a41a9d1 commit db921fc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/testthat/tests_general.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,10 @@ test_that("format_dates", {
537537
expect_equal(dataRetrieval:::format_api_dates(end, TRUE),
538538
"../2021-01-01")
539539

540-
end <- c(NA, as.POSIXct("2021-01-01 12:15:00"))
541-
expect_equal(dataRetrieval:::format_api_dates(end),
542-
"../2021-01-01T18:15:00Z")
540+
# 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")
543544

544545
start_end <- as.POSIXct(c("2021-01-01 12:15:00",
545546
"2022-01-01 16:45"))

0 commit comments

Comments
 (0)