correct test case (#2340)

master
Archer 2 years ago committed by GitHub
parent ce638d26d9
commit 6078bf1a04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save