diff --git a/ctx_test.go b/ctx_test.go index eb81876e37..f094a2c494 100644 --- a/ctx_test.go +++ b/ctx_test.go @@ -5896,7 +5896,7 @@ func Test_Ctx_Drop(t *testing.T) { // Test the Drop method resp, err := app.Test(httptest.NewRequest(MethodGet, "/block-me", nil)) - require.Error(t, err) + require.ErrorIs(t, err, ErrTestGotEmptyResponse) require.Nil(t, resp) // Test the no-response handler @@ -5927,7 +5927,7 @@ func Test_Ctx_DropWithMiddleware(t *testing.T) { // Test the Drop method resp, err := app.Test(httptest.NewRequest(MethodGet, "/block-me", nil)) - require.Error(t, err) + require.ErrorIs(t, err, ErrTestGotEmptyResponse) require.Nil(t, resp) }