Skip to content

Commit 072f599

Browse files
hagen1778truepele
authored andcommitted
lib/promscrape: make linter happy
Signed-off-by: hagen1778 <[email protected]>
1 parent c2ceb13 commit 072f599

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

lib/promscrape/client_test.go

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
package promscrape
22

3-
import (
4-
"encoding/base64"
5-
"fmt"
6-
"io"
7-
"net"
8-
"net/http"
9-
"net/http/httptest"
10-
"testing"
11-
"time"
12-
13-
"github.com/VictoriaMetrics/VictoriaMetrics/lib/promauth"
14-
)
15-
3+
/*
164
func copyHeader(dst, src http.Header) {
175
for k, vv := range src {
186
for _, v := range vv {
@@ -109,7 +97,7 @@ func newTestAuthConfig(t *testing.T, isTLS bool, ba *promauth.BasicAuthConfig) *
10997
return ac
11098
}
11199
112-
/*func TestClientProxyReadOk(t *testing.T) {
100+
func TestClientProxyReadOk(t *testing.T) {
113101
ctx := context.Background()
114102
f := func(isBackendTLS, isProxyTLS bool, backendAuth, proxyAuth *promauth.BasicAuthConfig) {
115103
t.Helper()
@@ -194,4 +182,5 @@ func newTestAuthConfig(t *testing.T, isTLS bool, ba *promauth.BasicAuthConfig) *
194182
f(false, true, &promauth.BasicAuthConfig{Username: "test", Password: promauth.NewSecret("1234")}, nil)
195183
// backend tls and proxy auth
196184
f(true, false, nil, &promauth.BasicAuthConfig{Username: "proxy-test", Password: promauth.NewSecret("1234")})
197-
}*/
185+
}
186+
*/

0 commit comments

Comments
 (0)