Skip to content

Commit

Permalink
skip latency-dependent tests on CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Jul 18, 2024
1 parent 3b8701c commit 9dc9b38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# syrup (development version)

* Resolves CRAN test failures.

# syrup 0.1.0

* Initial CRAN submission.
5 changes: 5 additions & 0 deletions tests/testthat/test-syrup.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ test_that("syrup(interval) works", {

expect_s3_class(res_01, "tbl_df")
expect_s3_class(res_1, "tbl_df")

skip_on_cran()

expect_true(length(unique(res_01$id)) > length(unique(res_1$id)))
})

Expand All @@ -70,5 +73,7 @@ test_that("syrup does basic type checks", {
})

test_that("syrup warns with only one ID", {
skip_on_cran()

expect_snapshot_warning(syrup(1))
})

0 comments on commit 9dc9b38

Please sign in to comment.