Skip to content

Commit

Permalink
tests: fix rush reset check (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc authored Feb 10, 2025
1 parent 84928c4 commit ba7f850
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inst/testthat/helper_misc.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ flush_redis = function() {
}

expect_rush_reset = function(rush, type = "kill") {
processes = rush$processes
processes = if (exists("processes", rush)) {
rush$processes
} else {
rush$processes_processx %??% rush$processes_mirai
}
rush$reset(type = type)
Sys.sleep(1)
keys = rush$connector$command(c("KEYS", "*"))
Expand Down

0 comments on commit ba7f850

Please sign in to comment.