Skip to content

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

elhimov
Copy link

@elhimov elhimov commented Jul 30, 2025

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

Use single `pool.Instance` argument instead of 2 separate arguments:
`tarantool.Dialer` and `tarantool.Opts`.

Part of #452
@elhimov elhimov force-pushed the elhimov/gh-452-flaky-on-mac-TestConnectionHandlerOpenUpdateClose branch from 6f11ec2 to 0b1890e Compare July 30, 2025 14:49
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
@elhimov elhimov force-pushed the elhimov/gh-452-flaky-on-mac-TestConnectionHandlerOpenUpdateClose branch from 0b1890e to e7c2e9c Compare July 30, 2025 14:53
@elhimov elhimov marked this pull request as draft July 30, 2025 15:12
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.

Flaky test TestConnectionHandlerOpenUpdateClose on mac
1 participant