From 6078bf1a049acc7b95ca2cecef6944269509f88e Mon Sep 17 00:00:00 2001 From: Archer Date: Sun, 4 Sep 2022 21:14:56 +0800 Subject: [PATCH] correct test case (#2340) --- rest/router/patrouter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/router/patrouter_test.go b/rest/router/patrouter_test.go index 33659ec6..56748eac 100644 --- a/rest/router/patrouter_test.go +++ b/rest/router/patrouter_test.go @@ -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) }) } }