Skip to content
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

fix: unit test Recycle watch resolver tick goroutine #3449

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

harbourlga
Copy link
Contributor

Description (what this PR does / why we need it):

Which issue(s) this PR fixes (resolves / be part of):

The previous unit test did not recycle the watchresolved tick go routine. It is used to get the latest service information regularly. When running multiple unit tests, the v1/health/service/ interface of consul will be called concurrently, resulting in the X-Consul-Index returned by the server is not the expected result.

Other special notes for the reviewers:

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 24, 2024
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Oct 24, 2024
*fix: TestRegistry_Watch Keep the original

*chore: update ci consul ver to 1.13.9

*chore: update ci consul ver to 1.20.0

*chore: update ci consul ver to hashicorp/consul:1.20
@dosubot dosubot bot added the LGTM label Oct 28, 2024
@shenqidebaozi shenqidebaozi merged commit 6883242 into go-kratos:main Oct 28, 2024
33 checks passed
@harbourlga harbourlga deleted the fix-consul-unittest branch October 30, 2024 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants