From 1ba33a667cba902bc6498e40ddfcf05ed19bc092 Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Wed, 14 Oct 2026 04:45:19 +0100 Subject: [PATCH] Keep the session-recovery fixture caller alive for its first poll The containing proof completed every client/TLS/parser race suite, vet and real-embed build, but the new monitoring fixture used only one shortened retry delay. Its next client check took the production cap, exhausting the poll context. Include both fixture checks and assert a live caller before polling; production retry/caller policy is unchanged. Contract-Neutral: Correct the monitoring test schedule only; no production session, TLS, retry cadence, polling, guest safety or History contract delta. Change-source: pulse-maintainer --- internal/monitoring/monitor_session_admission_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/monitoring/monitor_session_admission_test.go b/internal/monitoring/monitor_session_admission_test.go index 86640ccc50..566aad655f 100644 --- a/internal/monitoring/monitor_session_admission_test.go +++ b/internal/monitoring/monitor_session_admission_test.go @@ -78,7 +78,9 @@ func TestPBSInvalidSessionKeepsFirstPollBoundary(t *testing.T) { project("invalid-session") originalDelays := connRetryDelays - connRetryDelays = []time.Duration{time.Millisecond} + // Include the next missing-client check: otherwise the fixture falls + // into the production 60-second cap and ends the poll caller first. + connRetryDelays = []time.Duration{time.Millisecond, time.Millisecond} defer func() { connRetryDelays = originalDelays }() ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() @@ -88,6 +90,9 @@ func TestPBSInvalidSessionKeepsFirstPollBoundary(t *testing.T) { } assertPBSConnectionProjection(t, monitor, instance.Name, false, "offline") project("awaiting-poll") + if err := ctx.Err(); err != nil { + t.Fatalf("fixture ended its poll caller before first-poll proof: %v", err) + } task, err := newPBSPollProvider().BuildPollTask(monitor, instance.Name) if err != nil { t.Fatal(err)