unistore: close event stream on context cancelation (#101293)

* add tests for broacaster

* fix sql notifier not closing the stream

* fix sql notifier not closing the stream

* close sub

* fix broadcaster test

* fix broadcaster test

* suggestion
This commit is contained in:
Georges Chaudy
2025-02-25 17:28:31 +01:00
committed by GitHub
parent c5250311fc
commit 53e91fd5e8
5 changed files with 86 additions and 6 deletions

View File

@ -120,6 +120,8 @@ func (p *pollingNotifier) poller(ctx context.Context, since groupResourceRV, str
for {
select {
case <-ctx.Done():
return
case <-p.done:
return
case <-t.C: