Skip to content

Commit 6b7c958

Browse files
committed
TestWgoCmd_Run/signal_on: add context.DeadlineExceeded check
1 parent a939452 commit 6b7c958

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wgo_cmd_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,9 @@ func TestWgoCmd_Run(t *testing.T) {
638638
wgoCmd.Stdout = buf
639639
err = wgoCmd.Run()
640640
if err != nil {
641-
t.Fatal(err)
641+
if !errors.Is(err, context.DeadlineExceeded) {
642+
t.Fatal(err)
643+
}
642644
}
643645
got := strings.TrimSpace(buf.String())
644646
want := "Waiting...\nInterrupt received, graceful shutdown."

0 commit comments

Comments
 (0)