This is an automated email from the ASF dual-hosted git repository. kszucs pushed a commit to branch maint-9.0.0 in repository https://gitbox.apache.org/repos/asf/arrow.git
commit 25145ed386b38c7d242d20ea52d15ec1481170b7 Author: Rok Mihevc <[email protected]> AuthorDate: Mon Jul 25 23:46:41 2022 +0200 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]> --- r/tests/testthat/test-dplyr-funcs-datetime.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r/tests/testthat/test-dplyr-funcs-datetime.R b/r/tests/testthat/test-dplyr-funcs-datetime.R index 0c655e48bb..b8bd28e970 100644 --- a/r/tests/testthat/test-dplyr-funcs-datetime.R +++ b/r/tests/testthat/test-dplyr-funcs-datetime.R @@ -3138,12 +3138,12 @@ test_that("temporal round/floor/ceil period unit maxima are enforced", { # produces incorrect answers check_timezone_rounding_vs_lubridate <- function(data, unit) { - # esoteric lubridate bug: on windows only (not ubuntu), lubridate returns + # esoteric lubridate bug: on windows and macOS (not linux), lubridate returns # incorrect ceiling/floor for timezoned POSIXct times (syd, adl, kat zones, # but not mar) but not utc, and not for round, and only for these two # timestamps where high-precision timing is relevant to the outcome if (unit %in% c(".001 second", "second", "minute")) { - if (tolower(Sys.info()[["sysname"]]) == "windows") { + if (tolower(Sys.info()[["sysname"]]) %in% c("windows", "darwin")) { data <- data[-c(1, 3), ] } }
