You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(lock.manager): Fix property test timing edge cases
- Increase minimum lockTimeoutMs arbitrary from 1 to 100ms to avoid race conditions with very small timeout values
- Replace lockTimeoutMs - delta calculation with Math.min(delta, Math.floor(lockTimeoutMs / 2)) to guarantee lock age stays well within timeout window
- Add clarifying comments explaining why lockTimeoutMs / 2 is used to prevent Date.now() drift between test setup and isTimedOut() check from causing flaky failures
- Apply timing fix consistently across both non-stale detection test cases (standard and CI environments)
0 commit comments