Skip to content

Commit fdebf0a

Browse files
committed
cli/command/container: fix some unhandled errors in test
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent e47a5c7 commit fdebf0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/command/container/run_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func TestRunAttach(t *testing.T) {
127127
}
128128

129129
// end stream from "container" so that we'll detach
130-
conn.Close()
130+
assert.NilError(t, conn.Close())
131131

132132
select {
133133
case cmdErr := <-cmdErrC:
@@ -207,7 +207,7 @@ func TestRunAttachTermination(t *testing.T) {
207207
}
208208

209209
assert.NilError(t, syscall.Kill(syscall.Getpid(), syscall.SIGTERM))
210-
conn.Close()
210+
assert.NilError(t, conn.Close())
211211

212212
select {
213213
case <-killCh:

0 commit comments

Comments
 (0)