Add support for TLS configuration in NSQ input (#3903)

This commit is contained in:
Soulou
2018-10-23 02:50:32 +02:00
committed by Daniel Nelson
parent 2e59e4dd6c
commit 12279042d3
2 changed files with 43 additions and 16 deletions

View File

@@ -19,9 +19,8 @@ func TestNSQStatsV1(t *testing.T) {
}))
defer ts.Close()
n := &NSQ{
Endpoints: []string{ts.URL},
}
n := New()
n.Endpoints = []string{ts.URL}
var acc testutil.Accumulator
err := acc.GatherError(n.Gather)
@@ -276,9 +275,8 @@ func TestNSQStatsPreV1(t *testing.T) {
}))
defer ts.Close()
n := &NSQ{
Endpoints: []string{ts.URL},
}
n := New()
n.Endpoints = []string{ts.URL}
var acc testutil.Accumulator
err := acc.GatherError(n.Gather)