diff options
-rw-r--r-- | node_exporter_test.go | 3 |
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 ( | |||
16 | var ( | 16 | var ( |
17 | binary = filepath.Join(os.Getenv("GOPATH"), "bin/node_exporter") | 17 | binary = filepath.Join(os.Getenv("GOPATH"), "bin/node_exporter") |
18 | ) | 18 | ) |
19 | |||
19 | const ( | 20 | const ( |
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 | } |