Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Commit

Permalink
Pass function to enforce error
Browse files Browse the repository at this point in the history
  • Loading branch information
bahlo committed Aug 1, 2014
1 parent cd87d62 commit 2eeeb0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestWriteJSON(t *testing.T) {

// Test error
w = httptest.NewRecorder()
if err := WriteJSON(w, nil); err != nil {
if err := WriteJSON(w, WriteJSON); err == nil {
t.Errorf("WriteJSON should return an error, but didn't")
}
}

0 comments on commit 2eeeb0f

Please sign in to comment.