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

Improve TestConcurrentAddAndPoll* tests #6079

Merged
merged 1 commit into from
Jun 1, 2024

Conversation

Shaddoll
Copy link
Member

What changed?
Improve TestConcurrentAddAndPoll* tests

Why?
The tests are flaky because the ACKed tasks are not deleted from testTaskManager.

How did you test it?
unit tests

Potential risks

Release notes

Documentation Changes

@@ -740,24 +739,7 @@ func (s *matchingEngineSuite) ConcurrentAddAndPollTasks(taskType int, workerCoun
s.matchingEngine.config.RangeSize = rangeSize // override to low number for the test
s.matchingEngine.config.TaskDispatchRPSTTL = time.Nanosecond
s.matchingEngine.config.MinTaskThrottlingBurstSize = dynamicconfig.GetIntPropertyFilteredByTaskListInfo(_minBurst)

mgr, err := tasklist.NewManager(
Copy link
Member Author

Choose a reason for hiding this comment

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

this object is not used in the tests at all

Copy link

codecov bot commented Jun 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.22%. Comparing base (eb076b2) to head (e9cc513).

Additional details and impacted files
Files Coverage Δ
service/matching/tasklist/task_gc.go 86.66% <100.00%> (ø)
service/matching/tasklist/task_list_manager.go 63.70% <ø> (ø)

... and 5 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb076b2...e9cc513. Read the comment docs.

@Shaddoll Shaddoll merged commit c6a145d into cadence-workflow:master Jun 1, 2024
20 checks passed
@Shaddoll Shaddoll deleted the matching-test branch June 1, 2024 01:51
timl3136 pushed a commit to timl3136/cadence that referenced this pull request Jun 6, 2024
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