Skip to content

Commit

Permalink
Don't show a warning when testing get_package
Browse files Browse the repository at this point in the history
  • Loading branch information
amoeba committed Sep 14, 2016
1 parent da93729 commit 3bfd205
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testthat/test_access.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ test_that("get_package works for an object in two packages", {

child_pkg <- create_dummy_package(mn)
second_resmap <- create_resource_map(mn, metadata_pid = child_pkg$metadata, check_first = FALSE)
pkg <- get_package(mn, child_pkg$metadata)
suppressWarnings({
pkg <- get_package(mn, child_pkg$metadata)
})

expect_length(pkg, 2)
})
Expand Down

0 comments on commit 3bfd205

Please sign in to comment.