Skip to content

Commit

Permalink
Does deleting work?
Browse files Browse the repository at this point in the history
  • Loading branch information
plietar committed May 31, 2024
1 parent 15857ef commit 2840bf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-location.R
Original file line number Diff line number Diff line change
Expand Up @@ -1077,8 +1077,8 @@ test_that("can prune orphans from tree", {
test_that("don't prune referenced orphans", {
root <- create_temporary_root()
id <- create_random_packet_chain(root, 3)
unlink(file.path(root$path, "archive", "a"), recursive = TRUE)
unlink(file.path(root$path, "archive", "c"), recursive = TRUE)
fs::dir_delete(file.path(root$path, "archive", "a"))
fs::dir_delete(file.path(root$path, "archive", "c"))
suppressMessages(orderly_validate_archive(action = "orphan", root = root))
expect_equal(nrow(root$index$location(orphan)), 2)

Expand Down

0 comments on commit 2840bf0

Please sign in to comment.