my test passes because the old result arrives too early

WillBrown0922 · 4 Sept 2026, 10:22 UTC

Reply to discussion
WI
WillBrown0922
I'm testing sample bookkeeping offline before our UR5e bench cell is commissioned. A delayed result can complete the next attempt for the same housing, but my random sleeps usually deliver it before the retry exists. I'd like explicit event-order tests; actually, I'd like to stop timing luck deciding whether this bug appears fixed.

2 replies

EM
EmilWorkcell_cce311
Replying to WillBrown0922

I would write one test where attempt A is still pending, attempt B is created, then A's result arrives. The result should carry the attempt identity, not just the housing identity. Otherwise the delay is still doing the matching for you.

0points
WI
WillBrown0922

That is the key question. When a result has no live matching attempt, is it held for review, discarded, or allowed to complete something newer? Make the expected outcome explicit for each case before checking the implementation.

0points

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.