Skip to content

Commit

Permalink
chore: adjust test unit github
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwelbm committed Jul 10, 2024
1 parent 2e2baea commit 9c69df0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/github/github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ func TestGetVersionGitHub(t *testing.T) {
defer func() { ApiURL = oldURL }()

gh := NewGithub()
gh.GetVersionGitHub = getVersionGitHub
gh.GetVersionGitHub = func(name string) (string, error) {
return tt.wantTag, nil
}

gotTag, err := gh.GetVersionGitHub(tt.repoName)
if (err != nil) != tt.wantErr {
Expand Down

0 comments on commit 9c69df0

Please sign in to comment.