Skip to content

Commit ffcdd54

Browse files
committed
test: fix test for download
1 parent 45a985b commit ffcdd54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/repository/github/github_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func TestDownload(t *testing.T) {
175175

176176
// Setup mock client
177177
mockService := mockService{}
178-
mockService.On("GetArchiveLink", "owner", "repo", github.Tarball, mock.Anything).Return(archiveURL, &github.Response{}, nil)
178+
mockService.On("GetArchiveLink", "owner", "test-project", github.Tarball, mock.Anything).Return(archiveURL, &github.Response{}, nil)
179179

180180
svc := githubService{
181181
client: &mockService,
@@ -189,7 +189,7 @@ func TestDownload(t *testing.T) {
189189
ID: 123,
190190
Name: "test-project",
191191
GroupOrOwner: "owner",
192-
Path: "owner/repo",
192+
Path: "owner/test-project",
193193
}
194194

195195
err = svc.Download(testProject, tempDir)

0 commit comments

Comments
 (0)