Skip to content

Commit 4e37149

Browse files
authored
ARROW-17197: [R] floor_date/ceiling_date lubridate comparison tests failing on macOS (#13705)
This resolves [ARROW-17197](https://issues.apache.org/jira/browse/ARROW-17197). Authored-by: Rok <[email protected]> Signed-off-by: Rok <[email protected]>
1 parent 42647dc commit 4e37149

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎r/tests/testthat/test-dplyr-funcs-datetime.R‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3138,12 +3138,12 @@ test_that("temporal round/floor/ceil period unit maxima are enforced", {
31383138
# produces incorrect answers
31393139
check_timezone_rounding_vs_lubridate <- function(data, unit) {
31403140

3141-
# esoteric lubridate bug: on windows only (not ubuntu), lubridate returns
3141+
# esoteric lubridate bug: on windows and macOS (not linux), lubridate returns
31423142
# incorrect ceiling/floor for timezoned POSIXct times (syd, adl, kat zones,
31433143
# but not mar) but not utc, and not for round, and only for these two
31443144
# timestamps where high-precision timing is relevant to the outcome
31453145
if (unit %in% c(".001 second", "second", "minute")) {
3146-
if (tolower(Sys.info()[["sysname"]]) == "windows") {
3146+
if (tolower(Sys.info()[["sysname"]]) %in% c("windows", "darwin")) {
31473147
data <- data[-c(1, 3), ]
31483148
}
31493149
}

0 commit comments

Comments
 (0)