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

[SDK-3814] Refactoring for "test__023__Presence__Channel_state_change_side_effects…" #1793

Merged
merged 7 commits into from
Nov 24, 2023

Conversation

maratal
Copy link
Collaborator

@maratal maratal commented Aug 20, 2023

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.

@maratal maratal marked this pull request as draft August 20, 2023 17:47
@github-actions github-actions bot temporarily deployed to staging/pull/1793/features August 20, 2023 17:47 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1793/jazzydoc August 20, 2023 17:53 Inactive
@maratal maratal marked this pull request as ready for review August 20, 2023 18:50
@maratal maratal changed the title Refactoring for "test__023__Presence__Channel_state_change_side_effects…" [SDK-3814] Refactoring for "test__023__Presence__Channel_state_change_side_effects…" Aug 21, 2023
Copy link
Collaborator

@lawrence-forooghian lawrence-forooghian left a 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?

Test/Tests/RealtimeClientPresenceTests.swift Outdated Show resolved Hide resolved
Test/Tests/RealtimeClientPresenceTests.swift Outdated Show resolved Hide resolved
Test/Tests/RealtimeClientPresenceTests.swift Show resolved Hide resolved
@lawrence-forooghian
Copy link
Collaborator

Note: this needs to be merged before #1714, so that we can remove commit fdbd4ac from that PR.

@github-actions github-actions bot temporarily deployed to staging/pull/1793/features October 11, 2023 23:21 Inactive
Copy link
Collaborator Author

@maratal maratal left a 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

Test/Tests/RealtimeClientPresenceTests.swift Outdated Show resolved Hide resolved
Test/Tests/RealtimeClientPresenceTests.swift Outdated Show resolved Hide resolved
Test/Tests/RealtimeClientPresenceTests.swift Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to staging/pull/1793/jazzydoc October 11, 2023 23:25 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1793/features October 14, 2023 21:13 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1793/jazzydoc October 14, 2023 21:21 Inactive
@maratal maratal merged commit c10bcc0 into main Nov 24, 2023
7 checks passed
@maratal maratal deleted the fix/1792-test__023-refactoring branch November 24, 2023 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Refactoring for test "test__023__Presence__Channel_state_change_side_effects__channel_enters_the_SUSPENDED..."
2 participants