Skip to content

Commit f519a86

Browse files
committed
cmd/dockerd: TestUserTerminatedError: fix unhandled errors
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 888716a commit f519a86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/docker/docker_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func TestUserTerminatedError(t *testing.T) {
8787
notifyCtx, cancelNotify := notifyContext(ctx, platformsignals.TerminationSignals...)
8888
t.Cleanup(cancelNotify)
8989

90-
syscall.Kill(syscall.Getpid(), syscall.SIGINT)
90+
assert.Check(t, syscall.Kill(syscall.Getpid(), syscall.SIGINT))
9191

9292
<-notifyCtx.Done()
9393
assert.ErrorIs(t, context.Cause(notifyCtx), errCtxSignalTerminated{
@@ -99,7 +99,7 @@ func TestUserTerminatedError(t *testing.T) {
9999
notifyCtx, cancelNotify = notifyContext(ctx, platformsignals.TerminationSignals...)
100100
t.Cleanup(cancelNotify)
101101

102-
syscall.Kill(syscall.Getpid(), syscall.SIGTERM)
102+
assert.Check(t, syscall.Kill(syscall.Getpid(), syscall.SIGTERM))
103103

104104
<-notifyCtx.Done()
105105
assert.ErrorIs(t, context.Cause(notifyCtx), errCtxSignalTerminated{

0 commit comments

Comments
 (0)