t2400: cleanup created worktree in test

Signed-off-by: Jacob Abel <jacobabel@nullpo.dev> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jacob Abel committed May 17, 2023 at 21:48 UTC 1b28fbd218cbefc9e5aa8c23d241b7cc8ee85878
1 file changed +1
t/t2400-worktree-add.sh
+1
@@ -326,6 +326,7 @@ test_expect_success 'add -B' '
326 '
327
328 test_expect_success 'add --quiet' '
329 + test_when_finished "git worktree remove -f -f another-worktree" &&
330 git worktree add --quiet another-worktree main 2>actual &&
331 test_must_be_empty actual
332 '