Repository navigation
Commit 41f9711
test(integration): make the utf-bom defaultFileEncoding test deterministic (#13196)
The 'should create new file with BOM when defaultFileEncoding is utf-8-bom'
integration test was the only case in utf-bom-encoding.test.ts that drove a
real model round-trip (rig.run + waitForToolCall, up to 300s per attempt).
On the loaded Docker self-hosted runner that round-trip can exceed the
vitest timeout, which blocked the v0.24.8-preview.0 release (#13066).
Convert it to runForcedToolCallScenario with a fake write_file call, the
same deterministic pattern as the sibling tests in this file. The real
write_file tool still executes, so the BOM assertions are unchanged. Also
unstub the env vars the scenario stubs, matching the first describe block.
Closes #13066
Co-authored-by: F415643 <[email protected]>
Co-authored-by: doudouOUC <[email protected]>1 parent dd82140 commit 41f9711
1 file changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
| |||
213 | 217 | | |
214 | 218 | | |
215 | 219 | | |
| 220 | + | |
216 | 221 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
221 | 231 | | |
222 | 232 | | |
223 | | - | |
224 | 233 | | |
225 | 234 | | |
226 | 235 | | |
| |||
0 commit comments