Browse Source

correct test case (#2340)

Archer 2 years ago
parent
commit
6078bf1a04
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rest/router/patrouter_test.go

+ 1 - 1
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)
 		})
 	}
 }