mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-26 05:29:45 +00:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user