Skip to content

Commit

Permalink
♻️ Refactor: Update Drop tests to verify error type
Browse files Browse the repository at this point in the history
  • Loading branch information
grivera64 committed Jan 12, 2025
1 parent dd183b5 commit 6456261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit 6456261

Please sign in to comment.