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

Make test connectionLoss logic the same, add waitForLoss option #3225

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HoustonPutman
Copy link
Contributor

Basically some of these tests require that the client be disconnected after we run expireSession. However, there can be gaps of a few milliseconds before the ZK client processes the event that it has been disconnected.

So just make all tests use the same logic and add an option to wait till the client has accepted the connection loss.

Copy link
Contributor

@dsmiley dsmiley left a comment

Choose a reason for hiding this comment

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

Can/should we just always wait or recommend that we do so? Seems safer to wait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants