correct test case (#2340)

This commit is contained in:
Archer 2022-09-04 21:14:56 +08:00 committed by GitHub
parent ce638d26d9
commit 6078bf1a04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ func TestPatRouterHandleErrors(t *testing.T) {
t.Run(test.method, func(t *testing.T) {
router := NewRouter()
err := router.Handle(test.method, test.path, nil)
assert.Error(t, ErrInvalidMethod, err)
assert.Equal(t, test.err, err)
})
}
}