Update process-exporter methods

This commit is contained in:
Manuel Alejandro de Brito Fontes 2018-12-05 13:28:10 -03:00
parent 2fa55eabf6
commit 1fed943b3d
3 changed files with 25 additions and 20 deletions

View file

@ -70,8 +70,7 @@ func TestFlagConflict(t *testing.T) {
defer func() { os.Args = oldArgs }()
os.Args = []string{"cmd", "--publish-service", "namespace/test", "--http-port", "0", "--https-port", "0", "--publish-status-address", "1.1.1.1"}
_, c, err := parseFlags()
t.Logf("%v", c)
_, _, err := parseFlags()
if err == nil {
t.Fatalf("Expected an error parsing flags but none returned")
}