-
Notifications
You must be signed in to change notification settings - Fork 61
test: fix flaky test #453
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
test: fix flaky test #453
Conversation
0b1890e
to
e7c2e9c
Compare
e002994
to
76e4a2f
Compare
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.
Theoretically, I understand these changes and believe they should work, but I can't guarantee it.
It's up to you to agree or disagree with style comments, since it's test code.
76e4a2f
to
537f38f
Compare
537f38f
to
f443836
Compare
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.
Please see unresolved comment above.
df9cc0f
to
92cbe14
Compare
General context approach is used in multi-instances functions -- context is passed as a first argument.
Helper method that performs initial assigning of master/replica roles and is widely used in ConnectionPool tests was adjusted to wait for the roles to be applied successfully. Prior to this patch it doesn't, so sometimes subsequent test code might work unexpectedly (the problem was caught with TestConnectionHandlerOpenUpdateClose) Closes #452
92cbe14
to
f859fca
Compare
Helper method that performs initial assigning of master/replica roles and is widely used in
ConnectionPool
tests was adjusted to wait for the roles to be applied successfully.Prior to this patch it doesn't, so sometimes subsequent test code might work unexpectedly (the problem was caught with
TestConnectionHandlerOpenUpdateClose
)Related issues:
Closes #452