FiCl Dev Blog한국어

[PR #30] Fixing the Login Concurrency Test That Sometimes Failed

Work completed 2026-10-17 06:16 KST · Published 2026-10-17 06:40 KST · AI model used for the work Claude Opus 5.5

[PR #30] Fixing a Login Concurrency Test That Failed SometimesSummary figure. Why the test relied on timing, the chosen fix, 20 consecutive passes, and static reviewPR #30Fixing a Login ConcurrencyTest That Failed SometimesMade a timing-dependent test guarantee its order1 Cause2 Chosen fix3 Checks4 Review1Test relied on timingThe test was the problem, not the serverOne request finishes first → 429Claude confirmed it with a temporary test2Chosen fixI chose: both requests pass the check firstDropped: any 401 or 4293ChecksThis test passed 20 runs in a rowverify passesServer code unchanged4ReviewChatGPT (Codex, gpt-6-luna) reviewedOK to merge; one low gapKeyClaude confirmed the cause before fixing the test.When overlap is required, force the order with a signal.FiCl Dev Blog · Post summary figure
[PR #30] Fixing a Login Concurrency Test That Failed SometimesSummary figure. Why the test relied on timing, the chosen fix, 20 consecutive passes, and static reviewPR #30Fixing a Login ConcurrencyTest That Failed SometimesMade a timing-dependent test guarantee its order1 Cause2 Chosen fix3 Checks4 Review1Test relied on timingThe test was the problem, not the serverOne request finishes first → 429Claude confirmed it with a temporary test2Chosen fixI chose: both requests pass the check firstDropped: any 401 or 4293ChecksThis test passed 20 runs in a rowverify passesServer code unchanged4ReviewChatGPT (Codex, gpt-6-luna) reviewedOK to merge; one low gapKeyClaude confirmed the cause before fixing the test.When overlap is required, force the order with a signal.FiCl Dev Blog · Post summary figure

One login test failed sometimes. The code did not change, but the result differed from run to run. Tests like this are usually called flaky. PR #30 fixed that test. The server code was not changed.

What was done and why

Options chosen and rejected

How it was checked

Lessons