Skip to content

Commit

Permalink
Remove table after test
Browse files Browse the repository at this point in the history
  • Loading branch information
jimhester committed Oct 23, 2020
1 parent c68cc94 commit cccfcf7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-SQLServer.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ test_that("SQLServer", {
# dbWriteTable errors if field.types don't exist (#271)
con <- DBItest:::connect(DBItest:::get_default_context())

on.exit(dbRemoveTable(con, "foo"), add = TRUE)
expect_warning(
dbWriteTable(con, "foo", iris, field.types = list(bar = "[int]")),
"Some columns in `field.types` not in the input, missing columns:"
Expand Down

0 comments on commit cccfcf7

Please sign in to comment.