Skip to content

Commit

Permalink
Work around failing tests on R 3.6.x Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Mar 17, 2024
1 parent b687aa2 commit 1699daa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tests/testthat/test-install-cran.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ test_that("", {
on.exit(unlink(lib, recursive = TRUE), add = TRUE)
dir.create(lib)

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

expect_silent(packageDescription("pkgconfig", lib.loc = lib))
})
1 change: 1 addition & 0 deletions tests/testthat/test-install-svn.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ test_that("install_svn subdir", {
test_that("remote_download.svn_remote error", {

skip_on_cran()
if (Sys.which("svn") == "") skip("Subversion not installed")

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

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-script.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test_that("install-github.R script does not load any package", {
},
args = list(script = script, lib = lib),
cmdargs = c("--vanilla", "--slave", "--no-save", "--no-restore"),
timeout = 20
timeout = 60
)

expect_equal(pkgs[[1]], pkgs[[2]])
Expand Down

0 comments on commit 1699daa

Please sign in to comment.