Skip to content

Commit

Permalink
Add missing test file
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Nov 7, 2023
1 parent 5f2a9cc commit 5897f1b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/async/test-race.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

test_that("race() rejects (#76)", {
defer_fail <- function() {
deferred$new(action = function(resolve) stop("foo"))
}

expect_error(
synchronise(async_race(
delay(0.1),
defer_fail()
)),
"foo"
)
})

0 comments on commit 5897f1b

Please sign in to comment.