Skip to content

Commit

Permalink
Bugfix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dklein-pik committed Oct 10, 2024
1 parent b79db53 commit 7f46c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test_01-inputdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7f46c0b

Please sign in to comment.