Use nil error response for testing middleware execution.

This commit is contained in:
mikestefanello 2021-12-22 14:38:00 -05:00
parent 4b91ed2f70
commit fcf1800ac0
3 changed files with 7 additions and 11 deletions

View file

@ -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) {