-
Notifications
You must be signed in to change notification settings - Fork 274
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
[bug] fix ut TestNodeGossip #18882
[bug] fix ut TestNodeGossip #18882
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #18196
What this PR does / why we need it:
fix ut TestNodeGossip
PR Type
Bug fix, Tests
Description
TestNodeGossip
unit test by introducing dynamic port allocation to avoid port conflicts.getRandomPort
to generate random ports for service and cache addresses.Changes walkthrough 📝
node_test.go
Use dynamic port allocation in TestNodeGossip
pkg/gossip/node_test.go
getRandomPort
to generate random ports.TestNodeGossip
to use random ports for service and cacheaddresses.