Use nil error response for testing middleware execution.
This commit is contained in:
parent
4b91ed2f70
commit
fcf1800ac0
3 changed files with 7 additions and 11 deletions
|
|
@ -43,7 +43,7 @@ func TestServeCachedPage(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
_ = tests.ExecuteMiddleware(ctx, LoadAuthenticatedUser(c.Auth))
|
||||
err = tests.ExecuteMiddleware(ctx, ServeCachedPage(c.Cache))
|
||||
tests.AssertHTTPErrorCode(t, err, http.StatusNotFound)
|
||||
assert.Nil(t, err)
|
||||
}
|
||||
|
||||
func TestCacheControl(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue