Skip to content

Commit

Permalink
fix: fix static check failures
Browse files Browse the repository at this point in the history
  • Loading branch information
voidint committed Nov 26, 2023
1 parent b3fe1ea commit d37ce99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/sdk/github/release_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ func TestReleaseUpdater_CheckForUpdates(t *testing.T) {

rr3 := httptest.NewRecorder()
rr3.WriteHeader(http.StatusOK)
rr3.WriteString(`{"tag_name": 7}`)
_, _ = rr3.WriteString(`{"tag_name": 7}`)

rr4 := httptest.NewRecorder()
rr4.WriteHeader(http.StatusOK)
rr4.WriteString(`{"tag_name": "HelloWorld"}`)
_, _ = rr4.WriteString(`{"tag_name": "HelloWorld"}`)

rr5 := httptest.NewRecorder()
rr5.WriteHeader(http.StatusOK)
rr5.WriteString(`{"tag_name": "1.5.2"}`)
_, _ = rr5.WriteString(`{"tag_name": "1.5.2"}`)

rr6 := httptest.NewRecorder()
rr6.WriteHeader(http.StatusOK)
rr6.WriteString(`{"tag_name": "1.6.0"}`)
_, _ = rr6.WriteString(`{"tag_name": "1.6.0"}`)

patches := gomonkey.ApplyMethodSeq(&http.Client{}, "Do", []gomonkey.OutputCell{
{Values: gomonkey.Params{nil, errors.New("unknown error")}},
Expand Down

0 comments on commit d37ce99

Please sign in to comment.