fix: 修复 Test_Issue4193 测试用例的结构问题

This commit is contained in:
hailaz
2025-09-05 10:15:45 +08:00
parent 91c6f25dd1
commit 50c5c33367

View File

@ -727,7 +727,6 @@ func Test_Issue4093(t *testing.T) {
})
}
// https://github.com/gogf/gf/issues/4193
func Test_Issue4193(t *testing.T) {
type Req struct {
@ -755,6 +754,8 @@ func Test_Issue4193(t *testing.T) {
"file": "",
})
t.Assert(content, `{"code":51,"message":"The File field is required","data":null}`)
})
}
// Issue4227Req
type Issue4227Req struct {
@ -811,6 +812,5 @@ func Test_Issue4227(t *testing.T) {
resp3 := client.PostContent(ctx, "/hello/123", `{}`)
t.Assert(resp3, `{"Authorization":"Bearer token123","query_param":false,"path_param":123,"cookie_param":true,"body_param":false}`)
})
}