Switch to kingpin flags (#639)
* Switch to kingpin flags * Fix logrus vendoring * Fix flags in main tests * Fix vendoring versions
This commit is contained in:
parent
1467d845fb
commit
dfe07eaae8
84 changed files with 9904 additions and 196 deletions
|
|
@ -26,7 +26,7 @@ func TestFileDescriptorLeak(t *testing.T) {
|
|||
t.Skipf("proc filesystem is not available, but currently required to read number of open file descriptors: %s", err)
|
||||
}
|
||||
|
||||
exporter := exec.Command(binary, "-web.listen-address", address)
|
||||
exporter := exec.Command(binary, "--web.listen-address", address)
|
||||
test := func(pid int) error {
|
||||
if err := queryExporter(address); err != nil {
|
||||
return err
|
||||
|
|
@ -78,7 +78,7 @@ func TestHandlingOfDuplicatedMetrics(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
|
||||
exporter := exec.Command(binary, "-web.listen-address", address, "-collector.textfile.directory", dir)
|
||||
exporter := exec.Command(binary, "--web.listen-address", address, "--collector.textfile.directory", dir)
|
||||
test := func(_ int) error {
|
||||
return queryExporter(address)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue