简体中文界面。帖子、指南及政策正文保留原文;未对原文作自动翻译。

Reproducing delayed events without random sleeps - sample acceptance bookkeeping

WillArcher0400 · 2026年5月30日 16:02 UTC

回复讨论
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 条回复

CA
CalebChan1102

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

20
WI
WillArcher0400

@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
CA
CalebChan1102

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

15

参与讨论

欢迎来到 Application Robot

所有人都可以阅读论坛。登录或注册后即可发起讨论、回复或上传照片。

忘记密码?

注册账号即表示你同意我们的 使用条款 社区准则。请阅读我们的 隐私政策 ,了解我们如何处理你的信息。