setTimeout can fire a few ms early under load (timer coalescing) — a 10ms sleep measured 9ms and failed the >=10 assertion, tripping a release gate. Sleep 25ms, assert >=20: the test verifies time is MEASURED, not the OS timer's precision. |
||
|---|---|---|
| .. | ||
| Transaction.unit.test.ts | ||
| TransactionManager.unit.test.ts | ||