Commit aef86ac
committed
🤖 fix: resolve flaky integration tests in bash runtime and stream resumption
Generated with mux
Fixes two independent flakes:
1. tests/ipcMain/runtimeExecuteBash.test.ts:
- Relaxed assertion on AI response text which is non-deterministic.
- Added strict assertion on tool output to verify command execution success (the actual goal of the test).
2. tests/ipcMain/resumeStream.test.ts:
- Replaced magic sleep(100) with proper event synchronization.
- Now waits for 'caught-up' event before triggering resume, ensuring the event collector is ready.1 parent 4600e0c commit aef86ac
File tree
2 files changed
+10
-3
lines changed- tests/ipcMain
2 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
303 | 309 | | |
304 | 310 | | |
305 | 311 | | |
| |||
0 commit comments