Skip to content

Commit

Permalink
feat: fix lint error (gin-gonic#3050)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkerou authored Feb 7, 2022
1 parent b40ded1 commit 87e40d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ func TestH2c(t *testing.T) {
r.GET("/", func(c *Context) {
c.String(200, "<h1>Hello world</h1>")
})
go http.Serve(ln, r.Handler())
go func() {
err := http.Serve(ln, r.Handler())
if err != nil {
fmt.Println(err)
}
}()
defer ln.Close()

url := "http://" + ln.Addr().String() + "/"
Expand Down

0 comments on commit 87e40d6

Please sign in to comment.