Skip to content

Commit

Permalink
relax test for most recent hourly data
Browse files Browse the repository at this point in the history
  • Loading branch information
Aariq committed Dec 12, 2023
1 parent 3c92a56 commit 07e2426
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/test-az_hourly.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ test_that("start=NULL, end=NULL works as expected", {
}, glue::glue("Querying most recent hour of data"))

expect_equal(nrow(null_null), 1)
expect_equal(null_null$date_datetime, latest_hour)
#could be that current hour hasn't hit API yet.
expect_in(null_null$date_datetime, c(latest_hour, latest_hour - hours(1)))
})

test_that("end=NULL works as expected", {
Expand Down

0 comments on commit 07e2426

Please sign in to comment.