tests: fix golint error

Error was:

  tests/cli/cli_test.go:552: declaration of "err" shadows declaration at tests/cli/cli_test.go:544
This commit is contained in:
Jakob Unterwurzacher 2018-10-11 20:57:52 +02:00
parent 04241455a2
commit e537ecbe2e

View File

@ -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() {