Skip to content

Commit b500b32

Browse files
committed
Test path removal
1 parent 7ca3908 commit b500b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-worktree.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ test_that("`git_worktree_is_valid()` works", {
116116
expect_true(git_worktree_is_valid("worktree", repo = repo))
117117

118118
# Remove the worktree's folder
119-
unlink(path, recursive = TRUE)
119+
expect_true(unlink(path, recursive = TRUE) == 0L)
120120
expect_false(git_worktree_is_valid("worktree", repo = repo))
121121

122122
# Still exists even though it is invalid

0 commit comments

Comments
 (0)