mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-02 16:28:39 +08:00
correct test case (#2340)
This commit is contained in:
parent
ce638d26d9
commit
6078bf1a04
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user