Skip to content

Commit

Permalink
Avoid curl dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchall committed Nov 28, 2023
1 parent f6ddb54 commit 619d7c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-country_networks.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
test_that("download works", {
skip_if_not_installed("tibble")
skip_if_offline()
skip_if(is_offline(), "offline")

out <- country_networks(c("GB", "US"))
expect_s3_class(out, "tbl_df")
Expand All @@ -13,7 +13,7 @@ test_that("download works", {

test_that("download fails", {
skip_if_not_installed("tibble")
skip_if_offline()
skip_if(is_offline(), "offline")

# invalid country: single
hide_length <- function(x) gsub("\\[[\\d,]+\\]", "[n]", x, perl = TRUE)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-ip_to_hostname.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test_that("hostname encoding/decoding works", {
hostname_to_ip(ip_address("127.0.0.1"))
})

skip_if_offline()
skip_if(is_offline(), "offline")

# missing values
expect_equal(hostname_to_ip(NA_character_), ip_address(NA))
Expand Down

0 comments on commit 619d7c2

Please sign in to comment.