readability tweak

This commit is contained in:
Max U
2018-06-28 15:56:36 -07:00
parent 885193bc8f
commit 674b9578d7
10 changed files with 31 additions and 51 deletions

View File

@@ -108,12 +108,10 @@ func TestRunParserAndGatherJSON(t *testing.T) {
n.acc = &acc
defer close(n.done)
config := &parsers.Config{
n.parser, _ = parsers.NewParser(&parsers.Config{
DataFormat: "json",
MetricName: "nats_json_test",
}
n.parser, _ = parsers.NewParser(config)
})
n.wg.Add(1)
go n.receiver()
in <- natsMsg(testMsgJSON)