浏览代码

correct test case (#2340)

Archer 2 年之前
父节点
当前提交
6078bf1a04
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)
 		})
 	}
 }