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
fix: replace polling with direct read in data-emulator log tests
The log increment tests used waitForLog() which polled Firestore in a
loop for up to 30s. Under CI load with parallel test files, the
combined time for two requests + two polling cycles often exceeded the
30s jest timeout, causing flaky failures.
Since writeLog() is awaited inside apiData before the response is sent,
the log document is guaranteed to exist by the time saveData() returns.
Replace the polling with a simple direct read after a small delay,
and remove the now-unused waitForLog helper.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments