Skip to content

MultiServerConnectionFactory does not use the provided initialConnection for the first call #3094

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

Closed
ScottDugas opened this issue Feb 4, 2025 · 0 comments · Fixed by #3170

Comments

@ScottDugas
Copy link
Collaborator

Building on the work here: #3083
I tried to change MultiServerConnectionFactoryTest so that it returns a mock statement, and assert about the statements that it returns, rather than asserting about the counters being used.

When I did this I added an assertion that the first statement comes from the initialConnection, and that failed.
I think it ends up incrementing weirdly.
I tried to get it to work, but kept failing.

Also, of note, the alternating may be confusing in the case where you have a variety of different calls to continuations.

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 a pull request may close this issue.

1 participant