Skip to content

Commit 2b0631f

Browse files
authored
Merge pull request #5941 from thaJeztah/TestUserTerminatedError_handle_errs
cmd/dockerd: TestUserTerminatedError: fix unhandled errors
2 parents 84828b0 + f519a86 commit 2b0631f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/docker/docker_test.go

+2-2
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)