mirror of https://github.com/jackc/pgx.git
parent
a6ace8969b
commit
f17c743c3c
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue