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

@@ -143,11 +143,10 @@ func TestConfig_LoadDirectory(t *testing.T) {
"Testdata did not produce correct memcached metadata.")
ex := inputs.Inputs["exec"]().(*exec.Exec)
config := &parsers.Config{
p, err := parsers.NewParser(&parsers.Config{
MetricName: "exec",
DataFormat: "json",
}
p, err := parsers.NewParser(config)
})
assert.NoError(t, err)
ex.SetParser(p)
ex.Command = "/usr/bin/myothercollector --foo=bar"