From 5aa6819eb1e0e8a5d92a9dec1879d57613a3a6d8 Mon Sep 17 00:00:00 2001 From: Matthias Rampke Date: Mon, 21 Aug 2017 16:45:42 +0000 Subject: [PATCH] gofmt node_exporter_test --- node_exporter_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node_exporter_test.go b/node_exporter_test.go index a41ee971..a1a214c9 100644 --- a/node_exporter_test.go +++ b/node_exporter_test.go @@ -16,6 +16,7 @@ import ( var ( binary = filepath.Join(os.Getenv("GOPATH"), "bin/node_exporter") ) + const ( address = "localhost:19100" ) @@ -118,7 +119,7 @@ func runCommandAndTests(cmd *exec.Cmd, address string, fn func(pid int) error) e break } time.Sleep(500 * time.Millisecond) - if cmd.Process== nil || i == 9 { + if cmd.Process == nil || i == 9 { return fmt.Errorf("can't start command") } }