Skip to content

Commit

Permalink
Update TestCopyToModify to use a mock remote directory for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
  • Loading branch information
Warashi committed Dec 12, 2024
1 parent d0c77ee commit 51e9c2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/git/repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ func TestCopyToModify(t *testing.T) {
r := &repo{
dir: faker.repoDir(org, repoName),
gitPath: faker.gitPath,
remote: faker.repoDir(org, repoName), // use the same directory as remote, it's not a real remote. it's strange but it's ok for testing.
}

commits, err := r.ListCommits(ctx, "")
Expand Down

0 comments on commit 51e9c2c

Please sign in to comment.