Repository navigation
test(antigravity): wait for the usage fixture before expiring its deadline - #1146
Conversation
…dline Co-authored-by: xxchan <37948597+xxchan@users.noreply.github.com>
|
Approved at 3eee455. Clean test-only fix: atomic writeProcessReport + eventually (real timers/promises and performance.now) avoids the Windows cold-start race before advancing the fake 500 ms deadline, with vi.useRealTimers() restored in both fireUsageDeadline and afterEach. Ready to squash-merge once CI (including both Windows shards) is green at 3eee455.
|
|
Post-merge CI failed on Newly failing: Run. Logs: |
The Antigravity usage deadline test now waits for the selected real subprocess to publish its PID and start time atomically before advancing the caller's 500 ms timer. The test still checks the timeout message, the one-second settlement allowance, termination of that exact process, and which CLI commands ran.
On main, the Windows usage case met both timeout assertions, then failed opening the missing PID file. Injecting a 650 ms delay before the fixture published its identity reproduced the same failure for both models and usage on Linux. Both delayed stages passed after synchronizing on the identity report. The change is confined to the test. Original Windows job.
All 13 boundary tests also passed with an injected 650 ms delay on every fixture process startup. The complete local check passed typecheck, lint, 5,585 unit tests and 19 mock scenarios.