[agent-automation] Fix errcheck lint issues in cli_test.go
This commit is contained in:
parent
37083dd4c1
commit
b16de316e4
1 changed files with 2 additions and 2 deletions
|
|
@ -48,13 +48,13 @@ func TestRunOutput(t *testing.T) {
|
||||||
r, w, _ := os.Pipe()
|
r, w, _ := os.Pipe()
|
||||||
os.Stdout = w
|
os.Stdout = w
|
||||||
|
|
||||||
Run([]string{})
|
_ = Run([]string{})
|
||||||
|
|
||||||
w.Close()
|
w.Close()
|
||||||
os.Stdout = oldStdout
|
os.Stdout = oldStdout
|
||||||
|
|
||||||
buf := new(bytes.Buffer)
|
buf := new(bytes.Buffer)
|
||||||
buf.ReadFrom(r)
|
_, _ = buf.ReadFrom(r)
|
||||||
if buf.Len() == 0 {
|
if buf.Len() == 0 {
|
||||||
t.Fatal("expected output")
|
t.Fatal("expected output")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue