-
Notifications
You must be signed in to change notification settings - Fork 25
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
[SDK-3814] Refactoring for "test__023__Presence__Channel_state_change_side_effects…" #1793
Conversation
…ts..." test. Now similar to https://github.com/ably/ably-js/blob/main/test/realtime/presence.test.js#L1908-L2043 it uses additional client to generate leave event (which makes sence).
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.
I agree that the motivation for the behaviour in the existing test is not very clear, and that it makes sense to replace it with something that makes more sense. However, I still think that the test, as it stands in this PR, is very difficult to understand (at least for me). What do you think?
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.
I think it's better now @lawrence-forooghian
…ed and re-attached events.
Closes #1792
Now a separate client is created for the member that will leave during SUSPENDED and ensure that a leave event for this member will be generated upon new attach.