Skip to content

Commit 12acb9e

Browse files
committed
fix(adapter): enhance error handling in next function of Express-style handler tests
1 parent e0cac19 commit 12acb9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adapter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func TestToFiberHandler_ExpressThreeParamsWithError_PropagatesNextErrorWhenNoRet
191191
handler := func(req Req, res Res, next func() error) error {
192192
assert.Equal(t, app, req.App())
193193
assert.Equal(t, app, res.App())
194-
_ = next()
194+
require.ErrorIs(t, next(), nextErr)
195195
return nil
196196
}
197197

0 commit comments

Comments
 (0)