Skip to content

Commit

Permalink
Remove tryCatch from test
Browse files Browse the repository at this point in the history
  • Loading branch information
weshinsley committed Jan 31, 2023
1 parent 1f228a6 commit 3a4c51c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/testthat/test-bundle.R
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,7 @@ test_that("Failure output written if a bundle fails", {

bundle_path <- file.path(path, "bundles", basename(bundle$path))

tryCatch({
orderly::orderly_bundle_run(bundle_path, "output")
}, error = function(e) {
invisible()
})
expect_error(orderly::orderly_bundle_run(bundle_path, "output"))

expect_true(file.exists(file.path(getwd(), "output", bundle$id, "pack",
"orderly_fail.rds")))
Expand Down

0 comments on commit 3a4c51c

Please sign in to comment.