Skip to content

Commit

Permalink
refactor: update write test
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMenoti committed Jul 8, 2024
1 parent 2d70fb2 commit 2fe8a9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/github/github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ func TestGetVersionGitHub(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(tt.statusCode)
w.Write([]byte(tt.response))
_, err := w.Write([]byte(tt.response))
if err != nil {
panic(err)
}
}))
defer server.Close()

Expand Down

0 comments on commit 2fe8a9a

Please sign in to comment.