Reproducing delayed events without random sleeps - sample acceptance bookkeeping

WillArcher0400 · 30 May 2026, 16:02 UTC

Reply to discussion
WI
WillArcher0400
In our offline test, delivering an old completion after a new attempt starts makes the new sample acceptance bookkeeping attempt look complete. The real setup uses Fairino FR5 in a sample inspection setup with recorded job events, with an inspection coupon as a reference. I'm trying to exercise delayed and duplicate events reliably; random sleeps keep making the test hard to reproduce.

3 replies

CA
CalebChan1102
Replying to WillArcher0400

Save the exact event order. Does your handler match the completion by attempt identity, or just the job label?

20 points
WI
WillArcher0400
Replying to CalebChan1102

@CalebChan1102 Our handler matches only the job label. The saved sequence reliably shows the earlier completion arriving after a new attempt begins and being attached to that new attempt.

19 points
CA
CalebChan1102
Replying to WillArcher0400

Replay that sequence with explicit attempt matching. Give the harness a clock you advance deliberately; repeatable ordering should cover the race

15 points

Add to the discussion

Welcome to Application Robot

Everyone can read the forum. Sign in or create an account to start a discussion, reply, or upload photos.

Forgot your password?

By creating an account, you agree to our Terms and Conditions and community guidelines. Read our Privacy Policy for how your information is handled.