From f080d13407596a218ed51e738d1bb348fc80ed99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Thu, 9 Jan 2025 14:24:09 +0100 Subject: [PATCH] Fix system requirements tests --- tests/testthat/test-system_requirements.R | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/testthat/test-system_requirements.R b/tests/testthat/test-system_requirements.R index e2eae342..78092c05 100644 --- a/tests/testthat/test-system_requirements.R +++ b/tests/testthat/test-system_requirements.R @@ -136,15 +136,15 @@ test_that("system_requirements return the system requirements if 2nd order depen expect_equal( system_requirements("ubuntu", "16.04", pkg), - c("apt-get install -y libcurl4-openssl-dev", - "apt-get install -y libssl-dev" + c("apt-get install -y libssl-dev", + "apt-get install -y libcurl4-openssl-dev" ) ) expect_equal( system_requirements("redhat", "7", pkg), - c("yum install -y libcurl-devel", - "yum install -y openssl-devel" + c("yum install -y openssl-devel", + "yum install -y libcurl-devel" ) ) }) @@ -186,8 +186,7 @@ test_that("system_requirements work with vector package arguments", { sort(c("apt-get install -y software-properties-common", "add-apt-repository -y ppa:cran/libgit2", "apt-get update", - "apt-get install -y libgit2-dev", "apt-get install -y libssh2-1-dev", - "apt-get install -y libssl-dev", "apt-get install -y zlib1g-dev", + "apt-get install -y libgit2-dev", "apt-get install -y libssl-dev", "apt-get install -y libcurl4-openssl-dev" )) )