@@ -53,6 +53,7 @@ func TestContextWatcherMultipleWatchPanics(t *testing.T) {
|
|||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
defer cancel()
|
defer cancel()
|
||||||
cw.Watch(ctx)
|
cw.Watch(ctx)
|
||||||
|
defer cw.Unwatch()
|
||||||
|
|
||||||
ctx2, cancel2 := context.WithCancel(context.Background())
|
ctx2, cancel2 := context.WithCancel(context.Background())
|
||||||
defer cancel2()
|
defer cancel2()
|
||||||
|
|||||||
Reference in New Issue
Block a user