Skip to content

Commit fe07ccd

Browse files
committed
Fix test failures
1 parent cdfbd69 commit fe07ccd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/testthat/test-install.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ test_that("install_cmdstan() successfully installs cmdstan", {
2626

2727
test_that("install_cmdstan() errors if installation already exists", {
2828
install_dir <- cmdstan_default_install_path()
29-
dir <- file.path(install_dir, "cmdstan-2.23.0")
29+
dir <- file.path(install_dir, "cmdstan-2.35.0")
3030
if (!dir.exists(dir)) {
3131
dir.create(dir, recursive = TRUE)
3232
}
3333
expect_warning(
3434
install_cmdstan(dir = install_dir, overwrite = FALSE,
35-
version = "2.23.0", wsl = FALSE),
35+
version = "2.35.0", wsl = FALSE),
3636
"An installation already exists",
3737
fixed = TRUE
3838
)
@@ -74,13 +74,13 @@ test_that("install_cmdstan() errors if it times out", {
7474

7575
test_that("install_cmdstan() errors if invalid version or URL", {
7676
expect_error(
77-
install_cmdstan(version = "2.23.2", wsl = os_is_wsl()),
78-
"Download of CmdStan failed with error: cannot open URL 'https://github.com/stan-dev/cmdstan/releases/download/v2.23.2/cmdstan-2.23.2.tar.gz'\nPlease check if the supplied version number is valid."
77+
install_cmdstan(version = "2.35.5", wsl = os_is_wsl()),
78+
"Download of CmdStan failed with error: cannot open URL 'https://github.com/stan-dev/cmdstan/releases/download/v2.35.5/cmdstan-2.35.5.tar.gz'\nPlease check if the supplied version number is valid."
7979
)
8080
expect_error(
81-
install_cmdstan(release_url = "https://github.com/stan-dev/cmdstan/releases/download/v2.23.2/cmdstan-2.23.2.tar.gz",
81+
install_cmdstan(release_url = "https://github.com/stan-dev/cmdstan/releases/download/v2.35.5/cmdstan-2.35.5.tar.gz",
8282
wsl = os_is_wsl()),
83-
"Download of CmdStan failed with error: cannot open URL 'https://github.com/stan-dev/cmdstan/releases/download/v2.23.2/cmdstan-2.23.2.tar.gz'\nPlease check if the supplied release URL is valid."
83+
"Download of CmdStan failed with error: cannot open URL 'https://github.com/stan-dev/cmdstan/releases/download/v2.35.5/cmdstan-2.35.5.tar.gz'\nPlease check if the supplied release URL is valid."
8484
)
8585
expect_error(
8686
install_cmdstan(release_url = "https://github.com/stan-dev/cmdstan/releases/tag/v2.24.0", wsl = os_is_wsl()),

0 commit comments

Comments
 (0)