Skip to content

Commit

Permalink
use expect_no_warning instead of regexp=NA
Browse files Browse the repository at this point in the history
  • Loading branch information
polettif committed Feb 1, 2023
1 parent b765236 commit 08a5191
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Imports:
checkmate,
geodist
Suggests:
testthat,
testthat (>= 3.1.5),
knitr,
markdown,
rmarkdown,
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-read-gtfs.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ test_that("files parameter", {
fns = names(g1)[names(g1) != "." & names(g1) != "calendar_dates"]

for(f in fns) {
expect_warning(read_gtfs(path, files = f), regexp = NA) # no warning expected
expect_no_warning(read_gtfs(path, files = f)) # no warning expected
}
})

0 comments on commit 08a5191

Please sign in to comment.