Skip to content

Commit

Permalink
test: add second iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Dec 4, 2023
1 parent b7b6871 commit f8892c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/testthat/test-Rush.R
Original file line number Diff line number Diff line change
Expand Up @@ -818,5 +818,12 @@ test_that("seed is set correctly on two workers", {
expect_equal(finished_tasks[.keys[3], y, on = "keys"], 2926)
expect_equal(finished_tasks[.keys[4], y, on = "keys"], 4937)

.keys = rush$push_tasks(list(list(x1 = 5, x2 = 3), list(x1 = 5, x2 = 4)))
rush$wait_for_tasks(.keys)

finished_tasks = rush$fetch_finished_tasks()
expect_equal(finished_tasks[.keys[1], y, on = "keys"], 7814)
expect_equal(finished_tasks[.keys[2], y, on = "keys"], 713)

expect_rush_reset(rush, type = "terminate")
})

0 comments on commit f8892c6

Please sign in to comment.