fix linter errors
This commit is contained in:
parent
cf08b56460
commit
2f36631f0e
|
@ -7,9 +7,9 @@ import (
|
||||||
"github.com/influxdata/telegraf/plugins/parsers"
|
"github.com/influxdata/telegraf/plugins/parsers"
|
||||||
"github.com/influxdata/telegraf/testutil"
|
"github.com/influxdata/telegraf/testutil"
|
||||||
|
|
||||||
|
"bytes"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"net/http"
|
"net/http"
|
||||||
"bytes"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -26,7 +26,7 @@ cpu_load_short,host=server06 value=12.0 1422568543702900257
|
||||||
emptyMsg = ""
|
emptyMsg = ""
|
||||||
)
|
)
|
||||||
|
|
||||||
func newTestHttpListener() (*HttpListener) {
|
func newTestHttpListener() *HttpListener {
|
||||||
listener := &HttpListener{
|
listener := &HttpListener{
|
||||||
ServiceAddress: ":8186",
|
ServiceAddress: ":8186",
|
||||||
ReadTimeout: "10",
|
ReadTimeout: "10",
|
||||||
|
@ -125,4 +125,3 @@ func TestQueryHTTP(t *testing.T) {
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.EqualValues(t, 200, resp.StatusCode)
|
require.EqualValues(t, 200, resp.StatusCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue