diff --git a/src/IO.Ably.Tests.Shared/Realtime/PresenceSandboxSpecs.cs b/src/IO.Ably.Tests.Shared/Realtime/PresenceSandboxSpecs.cs index 14eed9a2e..e7619360c 100644 --- a/src/IO.Ably.Tests.Shared/Realtime/PresenceSandboxSpecs.cs +++ b/src/IO.Ably.Tests.Shared/Realtime/PresenceSandboxSpecs.cs @@ -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 leaveMessages = new List(); PresenceMessage enteredMember = null; @@ -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();