Commit b04d937
authored
test(agent-core): give the sweep-resilience wait the full test budget (#142)
## Related Issue
None — test-stability fix (internal PR).
## Problem
`McpOAuthService sweepProactiveRefresh resilience > skips malformed meta
sidecars` flaked on a loaded CI runner today and blocked the release
gate: the immediate refresh spans two localhost HTTP round-trips plus
token writes, but `waitFor` used a hard-coded 5s deadline while the test
itself allows 15s. One `gh run rerun --failed` cleared it, but it will
bite future releases the same way.
## What changed
`waitFor` now takes an optional budget (default unchanged at 5s), and
the sweep-resilience wait uses 12s — inside the test's own 15s timeout,
with margin for cleanup. No production code touched.
## Checklist
- [x] I have read the
[CONTRIBUTING](https://github.com/PyModel/pythinker-code/blob/main/CONTRIBUTING.md)
document.
- [x] I have linked a related issue (internal stability fix).
- [x] I have added tests that prove my feature works (the test itself is
the change; scoped run passes 20/20).
- [x] Ran `gen-changesets` skill, or this PR needs no changeset.
- [x] Ran `gen-docs` skill, or this PR needs no doc update.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Tests**
* Improved test reliability by allowing asynchronous checks to use
configurable wait periods.
* Extended the proactive refresh resilience test’s wait window while
preserving its overall timeout.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 9c5604d commit b04d937
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| |||
618 | 622 | | |
619 | 623 | | |
620 | 624 | | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
621 | 628 | | |
622 | 629 | | |
623 | 630 | | |
| 631 | + | |
624 | 632 | | |
625 | 633 | | |
626 | 634 | | |
| |||
0 commit comments