Skip to content

Commit

Permalink
Added msg id check for entered messages after channel attach
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Apr 19, 2024
1 parent 02171d9 commit 131ea1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/IO.Ably.Tests.Shared/Realtime/PresenceSandboxSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ public async Task OnAttach_ShouldEnterMembersFromInternalMap(Protocol protocol)
await Task.Delay(250);
presence.MembersMap.Members.Should().HaveCount(4);
presence.InternalMembersMap.Members.Should().HaveCount(1);
var internalMemberId = presence.InternalMembersMap.Members.Values.First().Id;

List<PresenceMessage> leaveMessages = new List<PresenceMessage>();
PresenceMessage enteredMember = null;
Expand Down Expand Up @@ -490,6 +491,7 @@ await WaitForMultiple(2, partialDone =>
}

enteredMember.Should().NotBeNull();
enteredMember.Id.Should().Be(internalMemberId);
enteredMember.Action.Should().Be(PresenceAction.Enter);
enteredMember.ClientId.Should().Be("local");
presence.Unsubscribe();
Expand Down

0 comments on commit 131ea1c

Please sign in to comment.