diff options
author | Jakob Unterwurzacher | 2018-10-11 20:57:52 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-10-11 20:57:52 +0200 |
commit | e537ecbe2ee45565813ce0aa25fca9f3297088bb (patch) | |
tree | b599344f9be4b9d1762f7ab8f1893a7ecf6a7fba | |
parent | 04241455a2401a60451eb84cf7e3f8fe276c52a5 (diff) |
tests: fix golint error
Error was:
tests/cli/cli_test.go:552: declaration of "err" shadows declaration at tests/cli/cli_test.go:544
-rw-r--r-- | tests/cli/cli_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cli/cli_test.go b/tests/cli/cli_test.go index fa0b576..314f6ce 100644 --- a/tests/cli/cli_test.go +++ b/tests/cli/cli_test.go @@ -549,7 +549,8 @@ func TestIdle(t *testing.T) { "-q", "-nosyslog", "-fg", "-extpass", "echo test", "-i", "10ms", dir, mnt) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr - if err := cmd.Start(); err != nil { + err = cmd.Start() + if err != nil { t.Fatal(err) } timer := time.AfterFunc(5*time.Second, func() { |