Egor Rachkovskii 4d4bd535c4
Improve wait_for_event loop logic and add assert_event_invariants helper (#178)
- Refactored the `wait_for_event` function for clarity and to ensure proper deadline handling within the loop.
- Introduced `assert_event_invariants` to validate per-request event properties, enforcing invariants like correct `requestId`, no duplicate terminal events, and proper timing between `Propagated` and `Sent`.
- Added tests for `assert_event_invariants` enforcement in `S14` and `S15` lightpush scenarios.

Co-authored-by: Egor Rachkovskii <egorrachkovskii@status.im>
2026-04-28 17:44:27 +01:00
..
2026-04-14 14:25:36 +01:00
2026-01-29 08:24:35 +02:00
2024-09-05 19:58:46 +08:00
2026-04-18 08:34:20 +08:00
2025-11-21 11:45:15 +02:00