Skip to content

Commit

Permalink
Skip more tests if offline
Browse files Browse the repository at this point in the history
Learned this while running tests on a plane
  • Loading branch information
jennybc committed Jun 22, 2023
1 parent 331e50e commit c6b862f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-latest-dependencies.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test_that("sets version for imports & depends dependencies", {
skip_on_cran()
skip_if_offline()
withr::local_options(list(repos = c(CRAN = "https://cloud.r-project.org")))

create_local_package()
Expand All @@ -15,7 +15,7 @@ test_that("sets version for imports & depends dependencies", {
})

test_that("doesn't affect suggests", {
skip_on_cran()
skip_if_offline()
withr::local_options(list(repos = c(CRAN = "https://cloud.r-project.org")))

create_local_package()
Expand All @@ -27,7 +27,7 @@ test_that("doesn't affect suggests", {
})

test_that("does nothing for a base package", {
skip_on_cran()
skip_if_offline()
withr::local_options(list(repos = c(CRAN = "https://cloud.r-project.org")))

create_local_package()
Expand Down

0 comments on commit c6b862f

Please sign in to comment.