Files
buzz/mobile/test/shared
Tom Brow 9f56569f6f test(mobile): hold a push wake claim past the deadline instead of timing it (#9919)
## Summary

The push wake journey test checked the case where storage is still
claiming messages when the wake's budget runs out by giving every claim
a 100 ms delay and racing it against a 700 ms budget. On a loaded
machine a claim could land just after the 250 ms claim grace, be
recorded as shown, and never be returned, so the test's "partial plus
rest is everything" check failed intermittently.

The test now holds exactly one claim open until the wake has answered,
then releases it, and checks:

- the held message is not in the wake's notifications;
- its community is reported as failed, so the wake is incomplete;
- every other message is shown exactly once across this wake and the
next.

A new `HeldClaimShownMessageStore` test helper holds the claim. No
production code changes.

## Validation

Test-only change. The rewritten case passed 3 of 3 consecutive runs
locally.

---------

Signed-off-by: Tom Brow <tomb@block.xyz>
Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@localhost>
2026-11-24 18:03:25 -08:00
..