# why
The concurrent-daemon test intermittently fails on Windows with `EPERM`:
its fixture can remove the lock while the code under test is inspecting
it or attempting to acquire it again.
# what changed
Synchronizes the fixture in `packages/cli/tests/driver-session.test.ts`:
wait until the occupied lock has been inspected, pause the next
acquisition while starting the fake daemon and removing the lock, then
resume in `finally`. The test still exercises real lock contention and
retains every assertion.
This changes only test synchronization. No changeset is needed because
no shipped behavior changes.
# test plan
- [x] Driver-session suite: **24 passed**.
- [x] Changed-file lint, formatting, and diff checks.
- [x] CI passing at `75bee119c`, including Linux/Windows contract and
Chrome smoke tests; automated review found no issues.