Skip to content

Commit 2420e7a

Browse files
chore: add explict context cancellation for testing
1 parent c31a9b1 commit 2420e7a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rolling-shutter/keyperimpl/shutterservice/syncmonitor.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ func (s *SyncMonitor) Start(ctx context.Context, runner service.Runner) error {
2525
return s.runMonitor(ctx)
2626
})
2727

28+
runner.Go(func() error {
29+
<-time.After(30 * time.Minute)
30+
return errors.New("explicitly canceling context")
31+
})
32+
2833
return nil
2934
}
3035

0 commit comments

Comments
 (0)