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:
Karsten Weiss 2018-04-13 22:38:21 +02:00
parent 7a495a15b3
commit 0a453dce84
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,5 @@
// +build linux
package prometheus package prometheus
import ( import (