Commit 2e91857
committed
🤖 fix: throw on sendMessageAndWait timeout instead of silently returning partial events
The helper was ignoring the return value of waitForEvent, so when a
timeout occurred tests would get partial events without stream-end,
causing confusing assertion failures like 'expected undefined to be defined'.
Now throws a clear error with diagnostics: 'Timeout waiting for stream-end after Xms'1 parent ed754d8 commit 2e91857
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
236 | 245 | | |
237 | 246 | | |
238 | 247 | | |
| |||
0 commit comments