Skip to content

Commit

Permalink
Merge pull request #363 from r-dbi/f-double-warn
Browse files Browse the repository at this point in the history
feat: Allow multiple warnings in disconnect tests
  • Loading branch information
aviator-app[bot] authored Mar 30, 2024
2 parents 8275312 + 3378950 commit 36242d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Config/Needs/check: decor
Encoding: UTF-8
KeepSource: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.0.9000
RoxygenNote: 7.3.1
Collate:
'DBItest.R'
'compat-purrr.R'
Expand Down
6 changes: 3 additions & 3 deletions R/spec-connection-disconnect.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ spec_connection_disconnect <- list(
#' but this cannot be tested automatically.

disconnect_closed_connection = function(ctx, closed_con) {
#' A warning is issued immediately when calling `dbDisconnect()` on an
#' At least one warning is issued immediately when calling `dbDisconnect()` on an
#' already disconnected
expect_warning(dbDisconnect(closed_con))
suppressWarnings(expect_warning(dbDisconnect(closed_con)))
},

disconnect_invalid_connection = function(ctx, invalid_con) {
#' or invalid connection.
expect_warning(dbDisconnect(invalid_con))
suppressWarnings(expect_warning(dbDisconnect(invalid_con)))
},
#
NULL
Expand Down
2 changes: 1 addition & 1 deletion man/spec_connection_disconnect.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 36242d2

Please sign in to comment.