Skip to content

Commit

Permalink
Skip hostname tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchall committed Nov 29, 2023
1 parent 5f2159d commit b74d548
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-ip_to_hostname.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ test_that("hostname encoding/decoding works", {
expect_length(ip_to_hostname(ip_address(c("::1", "::2"))), 2)
expect_length(ip_to_hostname_all(ip_address(c("::1", "::2"))), 2)

# relies on specific hostname mapping
skip_on_cran()
skip_on_os("windows")

expect_equal(hostname_to_ip("unknown"), ip_address(NA))
expect_equal(ip_to_hostname(ip_address("0.0.0.0")), NA_character_)
Expand Down

0 comments on commit b74d548

Please sign in to comment.