Skip to content

Commit 1699daa

Browse files
committed
Work around failing tests on R 3.6.x Windows
1 parent b687aa2 commit 1699daa

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

tests/testthat/test-install-cran.R

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ test_that("", {
1313
on.exit(unlink(lib, recursive = TRUE), add = TRUE)
1414
dir.create(lib)
1515

16-
install_cran("pkgconfig", lib = lib, repos = repos, force = TRUE, quiet = TRUE)
16+
# we'll get warnings when CRAN moves binary packages to the
17+
# cran-archive server.
18+
suppressWarnings(
19+
install_cran("pkgconfig", lib = lib, repos = repos, force = TRUE, quiet = TRUE)
20+
)
1721

1822
expect_silent(packageDescription("pkgconfig", lib.loc = lib))
1923
})

tests/testthat/test-install-svn.R

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ test_that("install_svn subdir", {
2525
test_that("remote_download.svn_remote error", {
2626

2727
skip_on_cran()
28+
if (Sys.which("svn") == "") skip("Subversion not installed")
2829

2930
x <- list(url = "http://foo.bar.com")
3031

tests/testthat/test-script.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ test_that("install-github.R script does not load any package", {
5454
},
5555
args = list(script = script, lib = lib),
5656
cmdargs = c("--vanilla", "--slave", "--no-save", "--no-restore"),
57-
timeout = 20
57+
timeout = 60
5858
)
5959

6060
expect_equal(pkgs[[1]], pkgs[[2]])

0 commit comments

Comments
 (0)