Repository navigation
Commit ea89611
fix(tests): deflake LocalInterpreter timeout tests (#10630)
Two tests used execution_timeout=0.1, which only has to cover one
request/response round trip to the worker. On loaded CI runners that
round trip occasionally exceeds 100ms, so the timeout fires on code
that should return immediately (execute("if")) or before the host
tool request arrives.
Use a 1s timeout, exclude worker startup from the elapsed measurement,
and block the host tool on an event instead of a short sleep so the
test still fails if execute() waits for a blocked tool.
Amp-Thread-ID: https://ampcode.com/threads/T-01a13070-310d-739a-abc1-9b4c33bffaa6
Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: Isaac Miller <isaac@cmpnd.ai>1 parent d41d142 commit ea89611
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
229 | | - | |
| 230 | + | |
230 | 231 | | |
231 | 232 | | |
232 | | - | |
| 233 | + | |
| 234 | + | |
233 | 235 | | |
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
| 239 | + | |
237 | 240 | | |
238 | | - | |
239 | | - | |
| 241 | + | |
| 242 | + | |
240 | 243 | | |
241 | 244 | | |
242 | 245 | | |
| |||
0 commit comments