Skip to content

Commit 686fbf0

Browse files
committed
Fixed test breakage from exportRecords message
1 parent 8708535 commit 686fbf0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/testthat/test-exportRecords.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ context("exportRecords")
33
rcon <- redcapConnection(url = url, token = API_KEY)
44

55
test_that("records can be exported",{
6-
expect_silent(rec <- exportRecords(rcon))
6+
expect_message(rec <- exportRecords(rcon))
77
expect_gte(length(rec), 1)
88
})
99

tests/testthat/test-fieldToVar-mChoice.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ rcon <- redcapConnection(url = url, token = API_KEY)
77
test_that("records can be exported with Hmisc attached",{
88
skip_if(!requireNamespace("Hmisc", quietly=TRUE),
99
"Hmisc is required to test mChoice export")
10-
expect_silent(rec <- exportRecords(rcon))
10+
expect_message(rec <- exportRecords(rcon))
1111
expect_gte(length(rec), 1)
1212
})
1313

0 commit comments

Comments
 (0)