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 7b0a640 commit fd86be6
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 fd86be6

Please sign in to comment.