update procfs to v0.0.2 (#1376)
Signed-off-by: Paul Gier <pgier@redhat.com>
This commit is contained in:
parent
0759c0ac01
commit
2bc133cd48
33 changed files with 167 additions and 172 deletions
|
|
@ -38,9 +38,13 @@ func TestFileDescriptorLeak(t *testing.T) {
|
|||
if _, err := os.Stat(binary); err != nil {
|
||||
t.Skipf("node_exporter binary not available, try to run `make build` first: %s", err)
|
||||
}
|
||||
if _, err := procfs.NewStat(); err != nil {
|
||||
fs, err := procfs.NewDefaultFS()
|
||||
if err != nil {
|
||||
t.Skipf("proc filesystem is not available, but currently required to read number of open file descriptors: %s", err)
|
||||
}
|
||||
if _, err := fs.Stat(); err != nil {
|
||||
t.Errorf("unable to read process stats: %s", err)
|
||||
}
|
||||
|
||||
exporter := exec.Command(binary, "--web.listen-address", address)
|
||||
test := func(pid int) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue