Repository navigation
Commit 9dc6119
committed
test(daemon): flush the queued event-log append before asserting it exists
The session journal queues its ndjson append rather than writing it inline, so
`open` can name the event-log path before the file is on disk. Reading it with
`fs.existsSync` 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, and the assertion started failing. Every other reader of that log awaits
`SessionStore.flushEvents` for the same reason; this one was the exception.1 parent c25534a commit 9dc6119
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