From fe07ccd8b4a6bf5a786eb5bf75ea03bc9cb61962 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Sun, 5 Jan 2025 11:30:24 +0800 Subject: [PATCH] Fix test failures --- tests/testthat/test-install.R | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/testthat/test-install.R b/tests/testthat/test-install.R index 178bccc0..df6d73cc 100644 --- a/tests/testthat/test-install.R +++ b/tests/testthat/test-install.R @@ -26,13 +26,13 @@ test_that("install_cmdstan() successfully installs cmdstan", { test_that("install_cmdstan() errors if installation already exists", { install_dir <- cmdstan_default_install_path() - dir <- file.path(install_dir, "cmdstan-2.23.0") + dir <- file.path(install_dir, "cmdstan-2.35.0") if (!dir.exists(dir)) { dir.create(dir, recursive = TRUE) } expect_warning( install_cmdstan(dir = install_dir, overwrite = FALSE, - version = "2.23.0", wsl = FALSE), + version = "2.35.0", wsl = FALSE), "An installation already exists", fixed = TRUE ) @@ -74,13 +74,13 @@ test_that("install_cmdstan() errors if it times out", { test_that("install_cmdstan() errors if invalid version or URL", { expect_error( - install_cmdstan(version = "2.23.2", wsl = os_is_wsl()), - "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." + install_cmdstan(version = "2.35.5", wsl = os_is_wsl()), + "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." ) expect_error( - install_cmdstan(release_url = "https://github.com/stan-dev/cmdstan/releases/download/v2.23.2/cmdstan-2.23.2.tar.gz", + install_cmdstan(release_url = "https://github.com/stan-dev/cmdstan/releases/download/v2.35.5/cmdstan-2.35.5.tar.gz", wsl = os_is_wsl()), - "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." + "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." ) expect_error( install_cmdstan(release_url = "https://github.com/stan-dev/cmdstan/releases/tag/v2.24.0", wsl = os_is_wsl()),