테스트: 야추·오델로 무작위 대국의 한 수 처리 시간 상한 5ms→30ms (병렬 실행 중 부하로 가끔 실패, 다른 게임과 같은 값)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-07 17:21:43 +09:00
parent 39223bacdd
commit 0a587a8b98
2 changed files with 4 additions and 4 deletions

View File

@@ -530,12 +530,12 @@ describe('random playouts (docs/09 §7)', () => {
fullHouseAllowsYacht: i % 2 === 0,
yahtzeeJoker: i % 6 === 0 ? 'free' : 'forced',
});
const a = randomPlayout(yacht, { players, options, seed: seedN(i), maxSteps: 20_000, invariant: checker() });
const a = randomPlayout(yacht, { players, options, seed: seedN(i), maxSteps: 20_000, invariant: checker(), maxApplyMs: 30 });
if (!a.finished) throw new Error(`seed ${i} did not finish`);
const r = yacht.result(a.finalState as YachtState)!;
expect(r.ranking.flat().sort()).toEqual([...players].sort());
if (i % 25 === 1) {
const b = randomPlayout(yacht, { players, options, seed: seedN(i), maxSteps: 20_000 });
const b = randomPlayout(yacht, { players, options, seed: seedN(i), maxSteps: 20_000, maxApplyMs: 30 });
expect(JSON.stringify(b.finalState)).toBe(JSON.stringify(a.finalState));
}
}