Skip to content

Commit 0dfbf1b

Browse files
committed
Skip keypress tests on CRAN
They are a little flaky.
1 parent 1a7b807 commit 0dfbf1b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/testthat/test-keypress.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
test_that("control characaters", {
3+
skip_on_cran()
34
p <- r_pty()
45

56
expect_snapshot(
@@ -14,6 +15,7 @@ test_that("control characaters", {
1415
})
1516

1617
test_that("write ahead", {
18+
skip_on_cran()
1719
p <- r_pty()
1820
expect_snapshot({
1921
p$write_input("{ Sys.sleep(0.5); cli::keypress() }\nX")
@@ -23,6 +25,7 @@ test_that("write ahead", {
2325
})
2426

2527
test_that("arrows, etc", {
28+
skip_on_cran()
2629
p <- r_pty()
2730
keys <- paste0("\033", c(
2831
"[A", "[C", "[D", "[F", "[H", "-",
@@ -47,6 +50,7 @@ test_that("arrows, etc", {
4750
})
4851

4952
test_that("nonblocking", {
53+
skip_on_cran()
5054
p <- r_pty()
5155
expect_snapshot({
5256
p$write_input("cli::keypress(block = FALSE)\n")

0 commit comments

Comments
 (0)