Skip to content

Commit

Permalink
fix a megastudy test
Browse files Browse the repository at this point in the history
  • Loading branch information
d-callan committed Feb 26, 2024
1 parent 7c61323 commit 6238d84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-class-Megastudy.R
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,6 @@ test_that("we have reasonable perf w a real-ish use case", {
)

benchmark <- microbenchmark::microbenchmark(getDTWithImputedZeroes(megastudyReal, megastudyVariablesReal, verbose = FALSE))
expect_that(mean(benchmark$time)/1000000 < 50, TRUE) ## this is in milliseconds
expect_that(median(benchmark$time)/1000000 < 50, TRUE)
expect_true(mean(benchmark$time)/1000000 < 50) ## this is in milliseconds
expect_true(median(benchmark$time)/1000000 < 50)
})

0 comments on commit 6238d84

Please sign in to comment.