diff options
| author | Edward Thomson <ethomson@github.com> | 2020-11-21 22:06:03 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-21 22:06:03 +0000 |
| commit | c8fe4da3c575568c30665ecbd9dcbf33deadd88b (patch) | |
| tree | 49740b560c150ad127b83745d3f3220e2fc26b0e /tests/worktree | |
| parent | 303b4c689477c3a3da1de6351c02db0368fe6625 (diff) | |
| download | libgit2-c8fe4da3c575568c30665ecbd9dcbf33deadd88b.tar.gz | |
Apply suggestions from code review
Diffstat (limited to 'tests/worktree')
| -rw-r--r-- | tests/worktree/worktree.c | 1 | ||||
| -rw-r--r-- | tests/worktree/worktree_helpers.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/tests/worktree/worktree.c b/tests/worktree/worktree.c index 88bcaa97e..f2078a3f9 100644 --- a/tests/worktree/worktree.c +++ b/tests/worktree/worktree.c @@ -618,6 +618,7 @@ void test_worktree_worktree__validate_invalid_worktreedir(void) cl_git_pass(git_worktree_lookup(&wt, fixture.repo, "testrepo-worktree")); p_rename("testrepo-worktree", "testrepo-worktree-tmp"); cl_git_fail(git_worktree_validate(wt)); + p_rename("testrepo-worktree-tmp", "testrepo-worktree"); git_worktree_free(wt); } diff --git a/tests/worktree/worktree_helpers.c b/tests/worktree/worktree_helpers.c index 8d78e1692..6d4cdbaeb 100644 --- a/tests/worktree/worktree_helpers.c +++ b/tests/worktree/worktree_helpers.c @@ -19,7 +19,6 @@ void cleanup_fixture_worktree(worktree_fixture *fixture) cl_fixture_cleanup(fixture->reponame); if (fixture->worktreename) cl_fixture_cleanup(fixture->worktreename); - p_rename("testrepo-worktree-tmp", "testrepo-worktree"); } void setup_fixture_worktree(worktree_fixture *fixture) |
