-
Notifications
You must be signed in to change notification settings - Fork 132
[Python] Fix flaky test test_zscan assertion logic #4952
#5056
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
base: main
Are you sure you want to change the base?
Conversation
…r_map keys Signed-off-by: hank95179 <hank95179@gmail.com>
d60c10e to
105ae47
Compare
|
Thanks for contributing. I will review the PR and give it a test to see if the fix is appropriate. |
|
@hank95179 Similar to your node fix I believe the better solution is to add a Please revise. |
|
Hi @hank95179, This PR has been open with outstanding feedback. If you could address the comments within the next couple of days, that would be great. Otherwise, I’ll plan to take over the PR and address the issue it was intended to resolve. |
…g with value Signed-off-by: Thomas Zhou <thomaszhou64@gmail.com>
dc6624a to
46a7e4b
Compare
…ilures This change increases the timeout from 50s to 120s in TlsCertificateTest.test.ts. This prevents 'Exceeded timeout of 50000 ms for a hook' errors during cluster creation on slower environments, addressing Issue valkey-io#4989. Signed-off-by: hank95179 <hank95179@gmail.com>
46a7e4b to
39225c0
Compare
jamesx-improving
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
currantw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. ✅
Description
This PR addresses the flakiness observed in
test_zscanandtest_sync_zscan.The test seeds the database with two sets of data: a
char_map(keys: 'a', 'b', 'c'...) and a largenum_map(keys: 'value 0', 'value 1'...).The previous assertion strictly required all items returned by
zscanto start with"value". However, sincezscaniterates through the set, it occasionally returns items from thechar_map. When this happened, the strict assertion caused the test to fail incorrectly.Solution
Updated the logic of zscan to only match results starting with value
Issue link
This Pull Request is linked to issue (URL): #4952