Skip to content

Commit

Permalink
test: Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Dec 1, 2024
1 parent 1da8c92 commit d26a7e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-regularExpressions.R
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d26a7e7

Please sign in to comment.