From 7f46c0b419806665af06e69005c8f42f442d7c14 Mon Sep 17 00:00:00 2001 From: David Klein Date: Thu, 10 Oct 2024 14:56:25 +0200 Subject: [PATCH] Bugfix test --- tests/testthat/test_01-inputdata.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test_01-inputdata.R b/tests/testthat/test_01-inputdata.R index f3c174b18..d64cc3970 100644 --- a/tests/testthat/test_01-inputdata.R +++ b/tests/testthat/test_01-inputdata.R @@ -11,7 +11,7 @@ test_that("Are all input data files present?", { w <- capture_warnings(updateInputData(cfg = gms::readDefaultConfig("../.."), remindPath = "../..")) # ignore warning about missing historical.mif, raise warning if there were other wargnings ignore <- "File historical.mif seems to be missing!" - if (!w %in% ignore) { + if (length(w) > 0 && !w %in% ignore) { warning(paste0("'updateInputData' raised the following wargnings\n", paste(w, collapse = "\n"))) } gms::model_unlock(lockID)