Build process_collector_test.go only on Linux
The test case requires the /proc filesystem. The change prevents this skip message during "go test -v" on platforms other than Linux: === RUN TestProcessCollector --- SKIP: TestProcessCollector (0.00s) process_collector_test.go:15: skipping TestProcessCollector, procfs not available: could not read /proc: stat /proc: no such file or directory Signed-off-by: Karsten Weiss <knweiss@gmail.com>
This commit is contained in:
parent
7a495a15b3
commit
0a453dce84
|
@ -1,3 +1,5 @@
|
|||
// +build linux
|
||||
|
||||
package prometheus
|
||||
|
||||
import (
|
||||
|
|
Loading…
Reference in New Issue