aboutsummaryrefslogtreecommitdiff
path: root/node_exporter_test.go
diff options
context:
space:
mode:
authorMatthias Rampke <mr@soundcloud.com>2017-08-21 16:45:42 +0000
committerMatthias Rampke <mr@soundcloud.com>2017-08-21 16:45:42 +0000
commit5aa6819eb1e0e8a5d92a9dec1879d57613a3a6d8 (patch)
treeb65cea5bc9cc84d64f0bfb92f7c644271fe60375 /node_exporter_test.go
parente1f129c729ebf6759c81959423b87ee1d7b8667a (diff)
downloadprometheus_node_collector-5aa6819eb1e0e8a5d92a9dec1879d57613a3a6d8.tar.bz2
prometheus_node_collector-5aa6819eb1e0e8a5d92a9dec1879d57613a3a6d8.tar.xz
prometheus_node_collector-5aa6819eb1e0e8a5d92a9dec1879d57613a3a6d8.zip
gofmt node_exporter_test
Diffstat (limited to 'node_exporter_test.go')
-rw-r--r--node_exporter_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/node_exporter_test.go b/node_exporter_test.go
index a41ee97..a1a214c 100644
--- a/node_exporter_test.go
+++ b/node_exporter_test.go
@@ -16,6 +16,7 @@ import (
16var ( 16var (
17 binary = filepath.Join(os.Getenv("GOPATH"), "bin/node_exporter") 17 binary = filepath.Join(os.Getenv("GOPATH"), "bin/node_exporter")
18) 18)
19
19const ( 20const (
20 address = "localhost:19100" 21 address = "localhost:19100"
21) 22)
@@ -118,7 +119,7 @@ func runCommandAndTests(cmd *exec.Cmd, address string, fn func(pid int) error) e
118 break 119 break
119 } 120 }
120 time.Sleep(500 * time.Millisecond) 121 time.Sleep(500 * time.Millisecond)
121 if cmd.Process== nil || i == 9 { 122 if cmd.Process == nil || i == 9 {
122 return fmt.Errorf("can't start command") 123 return fmt.Errorf("can't start command")
123 } 124 }
124 } 125 }