From 1a4b32dd978ee65059dfd59e9dfe18b699b868bc Mon Sep 17 00:00:00 2001 From: "C. Regouby" Date: Sat, 15 Jun 2024 19:31:06 +0200 Subject: [PATCH] apply post-test setup.R best practice --- tests/testthat/setup.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/setup.R b/tests/testthat/setup.R index b1097431..dab3696b 100644 --- a/tests/testthat/setup.R +++ b/tests/testthat/setup.R @@ -46,4 +46,4 @@ attrition_tree <- attrition %>% data.tree::as.Node() # Run after all tests -withr::defer(teardown_env()) +withr::defer(cleanup(), teardown_env())