Skip to content

Commit 67c6d74

Browse files
committed
silenced a test.
1 parent bb363fe commit 67c6d74

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

dev.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ check_man()
55

66
test()
77
test(filter = "pkg_load")
8-
8+
test(filter = "pkg_check")
99
check()

tests/testthat/test-pkg_check.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ test_that("pkg_check", {
1818
expect_identical(summary(chk), data.frame(package = "BB", errors = 1L, warnings = 0L, notes = 0L))
1919

2020
# BB should error if e.g. error_on=="error"
21-
expect_error(chk <- pkg_check("BB", src_pkgs = src_pkgs, error_on = "error", quiet = TRUE)
22-
, "R CMD check found ERRORs")
21+
capture_output(expect_error(chk <- pkg_check("BB", src_pkgs = src_pkgs, error_on = "error", quiet = TRUE)
22+
, "R CMD check found ERRORs"))
2323
})
2424

2525

0 commit comments

Comments
 (0)