Commit 8241905
authored
test(core): give the telemetry-swap client mock a getToolRegistry (QwenLM#10220)
GeminiClient.initialize() now calls restoreLoadedSkillsFromHistory, which
resolves the SKILL tool through this.config.getToolRegistry(). The telemetry-
swap transaction tests build a minimal config mock that predates that call and
does not provide getToolRegistry, so every test that awaits client.initialize()
throws "this.config.getToolRegistry is not a function" and the file reds the
Linux unit lane. Add getToolRegistry to the mock, returning an empty registry
(no SKILL tool, so the skill restore is a no-op) — the transaction behaviour
under test is unchanged.1 parent fc0e827 commit 8241905
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| |||
0 commit comments