File tree Expand file tree Collapse file tree 8 files changed +12
-11
lines changed Expand file tree Collapse file tree 8 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -335,11 +335,11 @@ func TestNewClientFromConfig(t *testing.T) {
335
335
handler : func (w http.ResponseWriter , r * http.Request ) {
336
336
switch r .URL .Path {
337
337
case "/redirected" :
338
- fmt .Fprintf (w , ExpectedMessage )
338
+ fmt .Fprint (w , ExpectedMessage )
339
339
default :
340
340
w .Header ().Set ("Location" , "/redirected" )
341
341
w .WriteHeader (http .StatusFound )
342
- fmt .Fprintf (w , "It should follow the redirect." )
342
+ fmt .Fprint (w , "It should follow the redirect." )
343
343
}
344
344
},
345
345
}, {
@@ -359,7 +359,7 @@ func TestNewClientFromConfig(t *testing.T) {
359
359
default :
360
360
w .Header ().Set ("Location" , "/redirected" )
361
361
w .WriteHeader (http .StatusFound )
362
- fmt .Fprintf (w , ExpectedMessage )
362
+ fmt .Fprint (w , ExpectedMessage )
363
363
}
364
364
},
365
365
},
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import (
21
21
"strings"
22
22
"testing"
23
23
24
- "github.com/golang/protobuf/proto"
24
+ "github.com/golang/protobuf/proto" //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
25
25
dto "github.com/prometheus/client_model/go"
26
26
27
27
"github.com/prometheus/common/model"
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import (
18
18
"io"
19
19
"net/http"
20
20
21
- "github.com/golang/protobuf/proto"
21
+ "github.com/golang/protobuf/proto" //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
22
22
"github.com/matttproud/golang_protobuf_extensions/pbutil"
23
23
"github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg"
24
24
Original file line number Diff line number Diff line change @@ -15,10 +15,11 @@ package expfmt
15
15
16
16
import (
17
17
"bytes"
18
- "github.com/golang/protobuf/proto"
19
- dto "github.com/prometheus/client_model/go"
20
18
"net/http"
21
19
"testing"
20
+
21
+ "github.com/golang/protobuf/proto" //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
22
+ dto "github.com/prometheus/client_model/go"
22
23
)
23
24
24
25
func TestNegotiate (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import (
20
20
"testing"
21
21
"time"
22
22
23
- "github.com/golang/protobuf/proto"
23
+ "github.com/golang/protobuf/proto" //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
24
24
"github.com/golang/protobuf/ptypes"
25
25
26
26
dto "github.com/prometheus/client_model/go"
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import (
19
19
"strings"
20
20
"testing"
21
21
22
- "github.com/golang/protobuf/proto"
22
+ "github.com/golang/protobuf/proto" //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
23
23
24
24
dto "github.com/prometheus/client_model/go"
25
25
)
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import (
24
24
25
25
dto "github.com/prometheus/client_model/go"
26
26
27
- "github.com/golang/protobuf/proto"
27
+ "github.com/golang/protobuf/proto" //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
28
28
"github.com/prometheus/common/model"
29
29
)
30
30
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import (
18
18
"strings"
19
19
"testing"
20
20
21
- "github.com/golang/protobuf/proto"
21
+ "github.com/golang/protobuf/proto" //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
22
22
dto "github.com/prometheus/client_model/go"
23
23
)
24
24
You can’t perform that action at this time.
0 commit comments