Skip to content

Commit 662228d

Browse files
committed
fix #238 let 200ms sleep take whatever amount of time on overloaded systems
1 parent 184c586 commit 662228d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-helpers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,5 @@ test_that("knitr hook gets applied", {
108108
"Sys.sleep(0.2)",
109109
"```"
110110
)
111-
expect_output(knitr::knit(text = mock_doc, quiet = TRUE), "global timer 0.2")
111+
expect_output(knitr::knit(text = mock_doc, quiet = TRUE), "global timer [0-9\\.]* secs elapsed")
112112
})

0 commit comments

Comments
 (0)