Skip to content

Commit

Permalink
removed matching message from timeout tests to avoid any differences …
Browse files Browse the repository at this point in the history
…in message given by testthat
  • Loading branch information
sckott committed Mar 11, 2015
1 parent 3e34cf2 commit d164d35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-ebirdloc.R
Expand Up @@ -26,6 +26,6 @@ test_that("ebirdloc fails correctly", {
expect_error(ebirdloc(locID = c('L99381','L99382','L99381','L99382','L99381','L99382',
'L99381','L99382','L99381','L99382','L99382')),
"Too many locations")
expect_error(ebirdloc(locID = 'L99381', config=timeout(0.02)), "Operation timed out")
expect_error(ebirdloc(locID = 'L99381', config=timeout(0.02)))
expect_error(suppressWarnings(ebirdloc(locID = 'L99381', sleep = "adf")), "invalid 'time' value")
})
2 changes: 1 addition & 1 deletion tests/testthat/test-ebirdtaxonomy.R
Expand Up @@ -18,5 +18,5 @@ test_that("ebirdtaxonomy fails correctly", {
expect_error(ebirdtaxonomy("asf"), mssg)
expect_error(ebirdtaxonomy(2), mssg)

expect_error(ebirdtaxonomy("spuh", config=timeout(0.02)), "Operation timed out")
expect_error(ebirdtaxonomy("spuh", config=timeout(0.02)))
})

0 comments on commit d164d35

Please sign in to comment.