Skip to content

Commit

Permalink
Restore old test now that we've debugged it
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Nov 22, 2023
1 parent f953c52 commit 72159b1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/testthat/test-stdout-stderr.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
test_that("stdout is captured", {
skip_on_cran()

expect_snapshot(
(reprex(system2("echo", args = "blah"), std_out_err = TRUE, advertise = FALSE))
)
out <- reprex(system2("echo", args = "blah"), std_out_err = TRUE)
expect_match(out, "Standard output and standard error", all = FALSE)
expect_match(out, "^blah$", all = FALSE)
})

test_that("stdout placeholder appears if nothing is captured", {
Expand Down

0 comments on commit 72159b1

Please sign in to comment.