mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-03 04:38:48 +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:
parent
5c6e826cc4
commit
28cdde7299
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue