From 89661301b0e62efd4d462339a2154b2484be89d5 Mon Sep 17 00:00:00 2001 From: John Guo Date: Wed, 6 Oct 2021 20:16:18 +0800 Subject: [PATCH] fix issue for unit testing case for package ghttp --- net/ghttp/ghttp_unit_openapi_swagger_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/ghttp/ghttp_unit_openapi_swagger_test.go b/net/ghttp/ghttp_unit_openapi_swagger_test.go index fe6de9130..13f8fd6f0 100644 --- a/net/ghttp/ghttp_unit_openapi_swagger_test.go +++ b/net/ghttp/ghttp_unit_openapi_swagger_test.go @@ -11,6 +11,7 @@ import ( "fmt" "github.com/gogf/gf/errors/gerror" "github.com/gogf/gf/text/gstr" + "github.com/gogf/gf/util/gmeta" "testing" "time" @@ -21,8 +22,9 @@ import ( func Test_OpenApi_Swagger(t *testing.T) { type TestReq struct { - Age int - Name string + gmeta.Meta `method:"get" summary:"Test summary" tags:"Test"` + Age int + Name string } type TestRes struct { Id int