File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ func TestUserTerminatedError(t *testing.T) {
87
87
notifyCtx , cancelNotify := notifyContext (ctx , platformsignals .TerminationSignals ... )
88
88
t .Cleanup (cancelNotify )
89
89
90
- syscall .Kill (syscall .Getpid (), syscall .SIGINT )
90
+ assert . Check ( t , syscall .Kill (syscall .Getpid (), syscall .SIGINT ) )
91
91
92
92
<- notifyCtx .Done ()
93
93
assert .ErrorIs (t , context .Cause (notifyCtx ), errCtxSignalTerminated {
@@ -99,7 +99,7 @@ func TestUserTerminatedError(t *testing.T) {
99
99
notifyCtx , cancelNotify = notifyContext (ctx , platformsignals .TerminationSignals ... )
100
100
t .Cleanup (cancelNotify )
101
101
102
- syscall .Kill (syscall .Getpid (), syscall .SIGTERM )
102
+ assert . Check ( t , syscall .Kill (syscall .Getpid (), syscall .SIGTERM ) )
103
103
104
104
<- notifyCtx .Done ()
105
105
assert .ErrorIs (t , context .Cause (notifyCtx ), errCtxSignalTerminated {
You can’t perform that action at this time.
0 commit comments