Skip to content

Commit

Permalink
stub Sys.time call to fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomUK committed Dec 5, 2023
1 parent 2fa3acb commit 14ac849
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/testthat/test-spcr_make_data_bundle.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
"test data bundle process" |>
test_that({

# stub out the Sys.time call with a repeating value
mockery::stub(spcr_make_data_bundle, "Sys.time", as.POSIXct("2023-12-04 21:25:25"))

db <- spcr_make_data_bundle(
test_measure_data,
test_report_config,
Expand Down

0 comments on commit 14ac849

Please sign in to comment.