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

@@ -125,12 +125,10 @@ func TestRunParserAndGatherJSON(t *testing.T) {
k.acc = &acc
defer close(k.done)
config := &parsers.Config{
k.parser, _ = parsers.NewParser(&parsers.Config{
DataFormat: "json",
MetricName: "kafka_json_test",
}
k.parser, _ = parsers.NewParser(config)
})
go k.receiver()
in <- saramaMsg(testMsgJSON)
acc.Wait(1)