Repository navigation
Commit 4ebc750
committed
test(daemon): flush the queued event-log append before asserting it exists
`recordEvent` queues the event-log append rather than writing it inline, so `open`
can name `events.ndjson` before the file is on disk. Asserting its existence right
after the handler returned only ever passed by timing: 4.1.11's module loading was
slow enough to drain the queue first, Vitest 5's is not. Every other reader of that
log awaits `SessionStore.flushEvents`; this was the exception.1 parent f85bcf5 commit 4ebc750
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
183 | 189 | | |
184 | 190 | | |
185 | 191 | | |
| |||
0 commit comments