diff --git a/tests/testthat/test-regularExpressions.R b/tests/testthat/test-regularExpressions.R index 83df6908d..08cdcbf8a 100644 --- a/tests/testthat/test-regularExpressions.R +++ b/tests/testthat/test-regularExpressions.R @@ -71,6 +71,7 @@ test_that("adding support for regular expressions (#296)", { test_that("regular expressions can be initialized twice without harm", { con <- dbConnect(SQLite()) + on.exit(dbDisconnect(con), add = TRUE) expect_true(initRegExp(db = con)) expect_true(initRegExp(db = con))