Skip to content

Commit

Permalink
tests: don't error on failed deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Jan 5, 2025
1 parent 72432f7 commit c6fed4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ create_local_thing <- function(

withr::defer(
{
fs::dir_delete(dir)
try(fs::dir_delete(dir))
},
envir = env
)
Expand Down

0 comments on commit c6fed4f

Please sign in to comment.