Skip to content

Commit 4769cb0

Browse files
committed
Skip test on CRAN
Signed-off-by: Stefan Widgren <[email protected]>
1 parent 1d4eb0a commit 4769cb0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/remotes.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ remote_remove(repo, "foobar")
5656

5757
stopifnot(identical(remotes(repo), character(0)))
5858

59-
refs <- remote_ls("https://github.com/ropensci/git2r")
60-
stopifnot(length(refs) > 0)
61-
stopifnot(names(refs) > 0)
62-
stopifnot(any(names(refs) == "HEAD"))
59+
if (identical(Sys.getenv("NOT_CRAN"), "true")) {
60+
refs <- remote_ls("https://github.com/ropensci/git2r")
61+
stopifnot(length(refs) > 0)
62+
stopifnot(names(refs) > 0)
63+
stopifnot(any(names(refs) == "HEAD"))
64+
}
6365

6466
# an invalid URL should throw an error
6567
tools::assertError(remote_ls("bad"))

0 commit comments

Comments
 (0)