Files
clean-architecture-frontend…/tests/unit
DongHyeonkaandClaude Opus 5 a0fbafb77b test: stop asserting which of two equal deadlines won the RPC-02 race
The cleanup test sets `totalDeadlineMs` and `idleDeadlineMs` to the same
25ms and then asserted `RPC_TOTAL_DEADLINE_EXCEEDED`. Which of the two the
runtime reports depends on whether the clock had crossed the total
deadline by the time the idle wait expired, so under parallel load the
assertion was a coin flip — it passed alone and failed in a 27-file run.

A test that fails for a reason unrelated to its subject teaches a reader
to ignore it, which is the failure mode this whole review pass was about.
The subject here is that a throwing `return` accessor cannot replace the
outcome the runtime already selected and that cancellation still runs
exactly once, so the assertion now pins the terminal kind and accepts
either deadline code.

Confirmed by three consecutive 485-test runs of the same 27-file set that
previously reproduced the failure.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-15 12:32:37 +09:00
..
2026-08-01 19:39:59 +09:00