Skip to content

Commit

Permalink
hotfix: suppress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Dec 12, 2024
1 parent e2f0faf commit 88584d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-estimate_secondary.R
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@ test_that("estimate_secondary works with filter_leading_zeros set", {
## testing deprecated functionality
withr::local_options(lifecycle_verbosity = "quiet")
modified_data <- inc_cases[1:10, secondary := 0]
out <- estimate_secondary(
out <- suppressWarnings(estimate_secondary(
modified_data,
obs = obs_opts(scale = Normal(mean = 0.2, sd = 0.2),
week_effect = FALSE),
filter_leading_zeros = TRUE,
verbose = FALSE
)
))
expect_s3_class(out, "estimate_secondary")
expect_named(out, c("predictions", "posterior", "data", "fit"))
expect_equal(out$predictions$primary, modified_data$primary[-(1:10)])
Expand Down

0 comments on commit 88584d6

Please sign in to comment.