Skip to content

Commit

Permalink
suppress warning before checking the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
slager committed Jan 7, 2024
1 parent 78af62f commit 1da0339
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-ebirdloc.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ test_that("ebirdloc fails correctly", {
expect_error(suppressWarnings(ebirdloc()))
expect_error(suppressWarnings(ebirdloc(species = "asdf")))
expect_error(suppressWarnings(ebirdloc(locID = "L99381", species = "asdf")))
expect_error(suppressWarnings(ebirdloc(), "argument \"locID\" is missing"))
expect_error(suppressWarnings(ebirdloc()), "argument \"locID\" is missing")
expect_error(suppressWarnings(ebirdloc(locID = c('L99381','L99382','L99381','L99382','L99381','L99382',
'L99381','L99382','L99381','L99382','L99382')),
"Too many locations"))
'L99381','L99382','L99381','L99382','L99382'))),
"Too many locations")
expect_error(suppressWarnings(ebirdloc(locID = 'L99381', config=timeout(0.001))))
expect_error(suppressWarnings(ebirdloc(locID = 'L99381', sleep = "adf")), "invalid 'time' value")
})

0 comments on commit 1da0339

Please sign in to comment.