From f8b2d97239918e176f4c61200690e50fe5a5ffdf Mon Sep 17 00:00:00 2001
From: Joel Jacobson <joel@compiler.org>
Date: Wed, 20 May 2026 04:39:48 -0700
Subject: [PATCH] Remove obsolete LISTEN array growth isolation test

async-notify.spec still had a permutation and third listener
session for ChannelHashAddListener array growth.  That function was
removed by the LISTEN/NOTIFY rework, so the test no longer exercises a
meaningful path.

Remove the stale session, permutation, and expected output.
---
 src/test/isolation/expected/async-notify.out | 11 +----------
 src/test/isolation/specs/async-notify.spec   |  9 ---------
 2 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/src/test/isolation/expected/async-notify.out b/src/test/isolation/expected/async-notify.out
index 5d6bcce2b02..55b7cbc6e02 100644
--- a/src/test/isolation/expected/async-notify.out
+++ b/src/test/isolation/expected/async-notify.out
@@ -1,4 +1,4 @@
-Parsed test spec with 7 sessions
+Parsed test spec with 6 sessions
 
 starting permutation: listenc notify1 notify2 notify3 notifyf
 step listenc: LISTEN c1; LISTEN c2;
@@ -149,13 +149,6 @@ notifier: NOTIFY "c1" with payload "msg15" from notifier
 notifier: NOTIFY "c1" with payload "msg16" from notifier
 notifier: NOTIFY "c1" with payload "msg17" from notifier
 
-starting permutation: listenc llisten l2listen l3listen lslisten
-step listenc: LISTEN c1; LISTEN c2;
-step llisten: LISTEN c1; LISTEN c2;
-step l2listen: LISTEN c1;
-step l3listen: LISTEN c1;
-step lslisten: LISTEN c1; LISTEN c2;
-
 starting permutation: llisten notify1 notify2 notify3 notifyf lcheck
 step llisten: LISTEN c1; LISTEN c2;
 step notify1: NOTIFY c1;
@@ -204,8 +197,6 @@ listener: NOTIFY "c2" with payload "" from notifier
 
 starting permutation: l2listen l2begin notify1 lbegins llisten lcommit l2commit l2stop
 step l2listen: LISTEN c1;
-listener2: NOTIFY "c1" with payload "" from notifier
-listener2: NOTIFY "c1" with payload "" from notifier
 step l2begin: BEGIN;
 step notify1: NOTIFY c1;
 step lbegins: BEGIN ISOLATION LEVEL SERIALIZABLE;
diff --git a/src/test/isolation/specs/async-notify.spec b/src/test/isolation/specs/async-notify.spec
index d09c2297f09..7aef2e8d180 100644
--- a/src/test/isolation/specs/async-notify.spec
+++ b/src/test/isolation/specs/async-notify.spec
@@ -68,12 +68,6 @@ step l2begin	{ BEGIN; }
 step l2commit	{ COMMIT; }
 step l2stop		{ UNLISTEN *; }
 
-# Third listener session for testing array growth.
-
-session listener3
-step l3listen	{ LISTEN c1; }
-teardown		{ UNLISTEN *; }
-
 # Listener session for cross-session notification test with channel 'ch'.
 
 session listener_ch
@@ -125,9 +119,6 @@ permutation lunlisten_all notify1 lcheck
 # Check notification_match function (triggered by hash table duplicate detection).
 permutation listenc notify_many_with_dup
 
-# Check ChannelHashAddListener array growth.
-permutation listenc llisten l2listen l3listen lslisten
-
 # Cross-backend notification delivery.  We use a "select 1" to force the
 # listener session to check for notifies.  In principle we could just wait
 # for delivery, but that would require extra support in isolationtester
-- 
2.52.0

