Skip to content

Commit

Permalink
Fixed test breakage from exportRecords message
Browse files Browse the repository at this point in the history
  • Loading branch information
spgarbet committed Mar 24, 2023
1 parent 8708535 commit 686fbf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-exportRecords.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ context("exportRecords")
rcon <- redcapConnection(url = url, token = API_KEY)

test_that("records can be exported",{
expect_silent(rec <- exportRecords(rcon))
expect_message(rec <- exportRecords(rcon))
expect_gte(length(rec), 1)
})

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-fieldToVar-mChoice.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rcon <- redcapConnection(url = url, token = API_KEY)
test_that("records can be exported with Hmisc attached",{
skip_if(!requireNamespace("Hmisc", quietly=TRUE),
"Hmisc is required to test mChoice export")
expect_silent(rec <- exportRecords(rcon))
expect_message(rec <- exportRecords(rcon))
expect_gte(length(rec), 1)
})

Expand Down

0 comments on commit 686fbf0

Please sign in to comment.