Skip to content

test(core): update scheduler registry mock#3415

Merged
wenshao merged 1 commit into
QwenLM:mainfrom
reidliu41:scheduler-test-registry-mock
Apr 18, 2026
Merged

test(core): update scheduler registry mock#3415
wenshao merged 1 commit into
QwenLM:mainfrom
reidliu41:scheduler-test-registry-mock

Conversation

@reidliu41

Copy link
Copy Markdown
Contributor

TLDR

Updates the CoreToolScheduler retry-loop test mock to match the current ToolRegistry interface.

The scheduler now calls ensureTool() when resolving tools and getAllToolNames() when building unknown-tool suggestions. The affected
tests still used an older hand-written mock, which caused CI failures with:

Screenshots / Video Demo

Dive Deeper

Reviewer Test Plan

Testing Matrix

🍏 🪟 🐧
npm run
npx
Docker
Podman - -
Seatbelt - -

Linked issues / bugs

https://github.com/QwenLM/qwen-code/actions/runs/24596356586/job/71927119595?pr=3394

  Update the CoreToolScheduler retry-loop test registry mock to match the current
  ToolRegistry interface. Add ensureTool and getAllToolNames so the tests exercise
  the scheduler path used in production.

@wenshao wenshao left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found. LGTM! ✅ — gpt-5.4 via Qwen Code /review

@wenshao wenshao merged commit 7eba1c4 into QwenLM:main Apr 18, 2026
13 checks passed
xaelistic pushed a commit to xaelistic/qwen-code that referenced this pull request Jun 7, 2026
Update the CoreToolScheduler retry-loop test registry mock to match the current
  ToolRegistry interface. Add ensureTool and getAllToolNames so the tests exercise
  the scheduler path used in production.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants