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:
parent
04241455a2
commit
e537ecbe2e
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user