Skip to content

Commit

Permalink
feat: Allow multiple warnings in disconnect tests
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Mar 30, 2024
1 parent beef089 commit 3378950
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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 3378950

Please sign in to comment.