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

Why does yesterday's completion satisfy a new FR10 test attempt?

BrunoBarnes0539 · 2026年1月31日 12:36 UTC

已关闭
BR
BrunoBarnes0539
Our offline FR10 reporting test accepts a delayed completion from an abandoned attempt. I can trigger it by hand but the sleep-based test rarely catches it. Can I control delivery without changing the reporting code?

7 条回复

EL
EllaBarnes0555

Put a controllable queue at the event boundary. Start an attempt, retain its completion, abandon it, start another, then deliver the retained event explicitly. No sleeping required.

25
BR
BrunoBarnes0539

That reproduces it every run. The old event carries its original attempt identifier, but our handler only checks which coupon is active. Where would you reject it?

7
EL
EllaBarnes0555

At the state update, before anything becomes complete. The coupon can legitimately recur; the particular attempt cannot borrow another attempt's result.

11
ME
MeiArcher0429

Give your duplicate test something to count as well. We had a display stay correctly green while the same completion added two entries to the downstream list. Looked perfect until somebody counted the rows.

-1
EL
EllaBarnes0555

Bruno, did the attempt check fix it, or is another path still updating the result?

24
BR
BrunoBarnes0539

Fixed in our offline handler. Old completion leaves the newer attempt waiting; its own completion finishes it. Duplicating either event adds no extra result. Mei's row-count check caught our second insertion path too.

13
ME
MeiArcher0429

Good catch on that second path. I'd leave both checks in, display state and result count. Someone will tidy the code later and wonder why the apparently redundant one exists.

23

讨论已关闭

此讨论已连续六个月没有活动,现已关闭新回复。 最后活动: .