Commit 4209c3a
authored
🤖 fix: resolve flaky integration tests in bash runtime and stream resumption (#729)
Generated with `mux`
Fixes two independent flakes:
### 1. `tests/ipcMain/runtimeExecuteBash.test.ts`
**Issue:** The test was flaky because it expected the AI model to
explicitly describe the output in its text response, which is
non-deterministic.
**Fix:** Prioritized verifying the actual tool output (which is
deterministic and proves the runtime works) and made the text response
check optional.
### 2. `tests/ipcMain/resumeStream.test.ts`
**Issue:** The test relied on a `setTimeout(100)` to wait for IPC
subscription, which caused race conditions in CI/loaded environments.
**Fix:** Replaced the sleep with `collector.waitForEvent('caught-up')`,
which is the correct synchronization signal from the backend.1 parent 7ba4d15 commit 4209c3a
File tree
3 files changed
+12
-4
lines changed- tests/ipcMain
3 files changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
821 | | - | |
| 821 | + | |
| 822 | + | |
822 | 823 | | |
823 | 824 | | |
824 | 825 | | |
| |||
| 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