diff --git a/src/test/isolation/specs/async-notify.spec b/src/test/isolation/specs/async-notify.spec index 7f451b18a1..8adad42c7c 100644 --- a/src/test/isolation/specs/async-notify.spec +++ b/src/test/isolation/specs/async-notify.spec @@ -5,7 +5,7 @@ session "listener" step "listen" { LISTEN a; } step "begin" { BEGIN; } -teardown { ROLLBACK; } +teardown { ROLLBACK; UNLISTEN *; } session "notifier" step "check" { SELECT pg_notification_queue_usage() > 0 AS nonzero; }