Skip to content

Commit

Permalink
optimize test
Browse files Browse the repository at this point in the history
  • Loading branch information
kkumar-gcc committed Jul 14, 2024
1 parent 05e8395 commit 3486e95
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions context_request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,7 @@ func (s *ContextRequestSuite) TestBindQueryToStruct() {
ID string `form:"id"`
}
var test Test
err := ctx.Request().BindQuery(&test)
if err != nil {
fmt.Println(err)
}
_ = ctx.Request().BindQuery(&test)
return ctx.Response().Success().Json(contractshttp.Json{
"id": test.ID,
})
Expand All @@ -362,7 +359,7 @@ func (s *ContextRequestSuite) TestBindQueryToStruct() {
Persons []Person `form:"persons"`
}
var test Test
err = ctx.Request().BindQuery(&test)
_ = ctx.Request().BindQuery(&test)
return ctx.Response().Success().Json(contractshttp.Json{
"id": test.ID,
"persons": test.Persons,
Expand Down

0 comments on commit 3486e95

Please sign in to comment.