Skip to content

Commit

Permalink
context_test.go: fix useless asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Dec 13, 2024
1 parent e46bd52 commit dc293d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -885,10 +885,10 @@ func TestContextGetCookie(t *testing.T) {
}

func TestContextBodyAllowedForStatus(t *testing.T) {
assert.False(t, false, bodyAllowedForStatus(http.StatusProcessing))
assert.False(t, false, bodyAllowedForStatus(http.StatusNoContent))
assert.False(t, false, bodyAllowedForStatus(http.StatusNotModified))
assert.True(t, true, bodyAllowedForStatus(http.StatusInternalServerError))
assert.False(t, bodyAllowedForStatus(http.StatusProcessing))
assert.False(t, bodyAllowedForStatus(http.StatusNoContent))
assert.False(t, bodyAllowedForStatus(http.StatusNotModified))
assert.True(t, bodyAllowedForStatus(http.StatusInternalServerError))
}

type TestRender struct{}
Expand Down

0 comments on commit dc293d4

Please sign in to comment.