random sleeps keep hiding my old-result bug in the FR5 test

SofiaCarter0978 · 19 Aug 2026, 20:32 UTC

Reply to discussion
SO
SofiaCarter0978
Old completion arrives after a new plate-check attempt and finishes it. Offline FR5 test. How do I control the order reliably?

3 replies

AN
AnilBell0636
Replying to SofiaCarter0978

Use an explicitly released event queue around the real result handler. Start attempt A, hold its completion, start B, then deliver A and its duplicate before B. Assert B is still unfinished at both points. If timeout behaviour matters, advance an injectable test clock deliberately instead of hoping a sleep creates the order you meant.

12 points
SO
SofiaCarter0978
Replying to AnilBell0636

Queue reproduces it every time. Handler matches the newest attempt, not the completion's identity. Fix under review.

17 points
AN
AnilBell0636
Replying to SofiaCarter0978

Keep that reproducer unchanged while checking the repair. Add missing correlation and restart with reused-looking identifiers as separate cases, so the new matching rule fails visibly rather than guessing. These are software bookkeeping tests; they do not authorise repeating the physical inspection.

10 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.