Skip to content

fix: Fix mock dependency #1507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2025

Conversation

dentiny
Copy link
Contributor

@dentiny dentiny commented Jul 14, 2025

What changes are included in this PR?

mockall dependency is introduced in #1484, which is used for unit test on retry.
But it's only used in unit tests, but not production code; so it should be placed under dev section, and completely disabled in production code path.
Current implementation unnecessarily increases crate size for production usage.

Are these changes tested?

N/A, a no-op change, a passed compilation should be enough

Copy link
Contributor

@liurenjie1024 liurenjie1024 left a comment

Choose a reason for hiding this comment

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

Thanks @dentiny for this pr, good catch!

@liurenjie1024 liurenjie1024 merged commit 36af3f7 into apache:main Jul 15, 2025
18 checks passed
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