Skip to content

Commit

Permalink
add comment to avoid warning when using http requests in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dhontecillas committed Sep 3, 2024
1 parent b24ff6d commit 907cc35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gin/render_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ func TestRender(t *testing.T) {

expected := `<doc><a><content>supu &amp; tupu</content></a><content>tupu</content><foo>42</foo></doc>`

req, _ := http.NewRequest("GET", "http://127.0.0.1:8080/", http.NoBody)
// we skip the check for https requests in tests adding the comment:
req, _ := http.NewRequest("GET", "http://127.0.0.1:8080/", http.NoBody) // skipcq: GO-S1028

w := httptest.NewRecorder()
server.ServeHTTP(w, req)
Expand Down

0 comments on commit 907cc35

Please sign in to comment.