feat(ci): add a bunch more linters

This commit is contained in:
sentriz
2023-09-22 19:05:20 +02:00
parent 33f1f2e0cf
commit e3dd812b6c
37 changed files with 233 additions and 139 deletions

View File

@@ -10,9 +10,11 @@ import (
"testing"
)
func New(t testing.TB, handler http.HandlerFunc) *http.Client {
func New(tb testing.TB, handler http.HandlerFunc) *http.Client {
tb.Helper()
server := httptest.NewTLSServer(handler)
t.Cleanup(server.Close)
tb.Cleanup(server.Close)
return &http.Client{
Transport: &http.Transport{