How can I replay a delayed completion without random sleeps?

RaviBarnes0563 · 5 Jun 2025, 10:03 UTC

Closed
RA
RaviBarnes0563
Our offline FR5 result tracker lets an old attempt's completion finish the newer attempt when it arrives late; how should I make that sequence repeatable so the developer can test the fix, rather than hope a random delay reproduces it?

2 replies

AN
AnilBarnes0549
Replying to RaviBarnes0563

Use a controlled event queue and test clock so you choose the order explicitly: start the first attempt, start the second, then deliver the first completion. Do both request and completion carry an attempt identity the tracker can compare?

10 points
RA
RaviBarnes0563
Replying to AnilBarnes0549

They only carried the reused job label; the revised fake interface now carries a separate attempt identity, and the queued late completion leaves the newer attempt waiting. The real interface change still needs agreement with its owner.

10 points

Discussion closed

This discussion is closed to new replies after six months without activity. Last activity: .