Files
hermes-agent/tests/gateway
kshitijk4poor 5633764733 test: wait for ledger-wrapped sends in drain assertions
Two consumer tests assumed a send completes synchronously within the
handler turn: the continuation-drain test polled on handler-call count
then immediately asserted on adapter.sent, and the split-brain heal
test drained with bare zero-delay yields. With ledger calls hopping to
worker threads around each send, the reply can land microseconds after
those checks. Poll for the actual sends with a bounded 2s window —
same invariants, scheduling-robust.
2026-08-03 11:00:49 +05:30
..