aboutsummaryrefslogtreecommitdiff
path: root/tests/cli
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-10-11 20:57:52 +0200
committerJakob Unterwurzacher2018-10-11 20:57:52 +0200
commite537ecbe2ee45565813ce0aa25fca9f3297088bb (patch)
treeb599344f9be4b9d1762f7ab8f1893a7ecf6a7fba /tests/cli
parent04241455a2401a60451eb84cf7e3f8fe276c52a5 (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
Diffstat (limited to 'tests/cli')
-rw-r--r--tests/cli/cli_test.go3
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() {