diff --git a/pgconn/internal/ctxwatch/context_watcher_test.go b/pgconn/internal/ctxwatch/context_watcher_test.go index 39652995..583199c7 100644 --- a/pgconn/internal/ctxwatch/context_watcher_test.go +++ b/pgconn/internal/ctxwatch/context_watcher_test.go @@ -53,6 +53,7 @@ func TestContextWatcherMultipleWatchPanics(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() cw.Watch(ctx) + defer cw.Unwatch() ctx2, cancel2 := context.WithCancel(context.Background()) defer cancel2()