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 TestUpdateWeight #3942

Merged
merged 2 commits into from
Feb 11, 2023
Merged

Fix TestUpdateWeight #3942

merged 2 commits into from
Feb 11, 2023

Conversation

yycptt
Copy link
Member

@yycptt yycptt commented Feb 10, 2023

What changed?

  • Fix TestUpdateWeight

Why?

  • Update channel was wrongly initialized with 0 capacity in test. Production code don't have this problem

How did you test it?
go test -run TestInterleavedWeightedRoundRobinSchedulerSuite -testify.m TestUpdateWeight -count=100

Potential risks
no, only fixing test

Is hotfix candidate?
no

@yycptt yycptt requested a review from a team as a code owner February 10, 2023 23:17
@@ -86,7 +86,7 @@ func (s *interleavedWeightedRoundRobinSchedulerSuite) SetupTest() {
2: 2,
3: 1,
}
s.channelWeightUpdateCh = make(chan struct{})
s.channelWeightUpdateCh = make(chan struct{}, 1)
Copy link
Member Author

Choose a reason for hiding this comment

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

@yycptt yycptt merged commit df9ec34 into temporalio:master Feb 11, 2023
@yycptt yycptt deleted the fix-TestUpdateWeight branch February 11, 2023 02:39
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