mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-23 20:25:56 +00:00
Allow the autonomous queue to produce the restart receipt
The complete race run observed a successful PBS recovery webhook after the functional test watchdog expired. Match the existing notification recovery contract watchdog: two autonomous five-second polls plus callback scheduling, while still requiring the actual HTTP payload and incident identity. No production queue, delivery policy or performance assertion changes. Contract-Neutral: Test-only functional receipt watchdog for the existing autonomous notification queue; production delivery and API unchanged. Change-source: pulse-maintainer
This commit is contained in:
@@ -75,7 +75,12 @@ func testPBSMetricObservationGapNotificationReceipts(t *testing.T, restart bool)
|
||||
select {
|
||||
case body := <-receipts:
|
||||
return body
|
||||
case <-time.After(5 * time.Second):
|
||||
case <-time.After(12 * time.Second):
|
||||
// This asserts delivery, not latency. The autonomous queue polls
|
||||
// every five seconds and the resolution callback is asynchronous;
|
||||
// a five-second deadline races a legitimate post-restart delivery.
|
||||
// Allow the same two-poll bound as the queue's recovery contracts,
|
||||
// without forcing its worker or skipping the real HTTP receipt.
|
||||
t.Fatal("no HTTP webhook receipt")
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user