Skip to content

Commit 373c7a5

Browse files
committed
test: Close result set
1 parent 1f07ecc commit 373c7a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testthat/test-dbConnect.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ test_that("warning if close connection with open results", {
3737
rs1 <- dbSendQuery(con, "SELECT 1 + 1")
3838

3939
expect_warning(dbDisconnect(con), "still in use")
40+
41+
dbClearResult(rs1)
4042
})
4143

4244
test_that("passing other options parameters", {

0 commit comments

Comments
 (0)