Skip to content

Commit

Permalink
test: gocilint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding committed Nov 18, 2023
1 parent 0c5a4e5 commit 92d398c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ func TestErrorPathJSON(t *testing.T) {
w.Header().Set("Content-Type", "application/json")

// Write an invalid JSON payload to the response writer
w.Write([]byte("invalid-json-payload"))
_, err := w.Write([]byte("invalid-json-payload"))
if err != nil {
t.Fatalf("Error writing to response writer: %s", err)
}
}))
defer mockServer.Close()

Expand Down

0 comments on commit 92d398c

Please sign in to comment.