Skip to content

Commit

Permalink
Try a new approach
Browse files Browse the repository at this point in the history
  • Loading branch information
dvg-p4 committed Sep 24, 2024
1 parent 008f5e9 commit 04e7d3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-reactivity.r
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,7 @@ test_that("debounce/throttle work properly (with priming)", {
rv$a <- isolate(rv$a) + 1
})
on.exit(src$destroy(), add = TRUE)
Sys.sleep(0.01) # sleep for 10 ms to avoid threshold errors

# Make a debounced reactive to test.
dr <- debounce(reactive(rv$a), 500)
Expand Down Expand Up @@ -1326,6 +1327,7 @@ test_that("debounce/throttle work properly (without priming)", {
rv$a <- isolate(rv$a) + 1
})
on.exit(src$destroy(), add = TRUE)
Sys.sleep(0.01) # sleep for 10 ms to avoid threshold errors

# Make a debounced reactive to test.
dr <- debounce(reactive(rv$a), 500)
Expand Down

0 comments on commit 04e7d3e

Please sign in to comment.