From 131ea1cd5fb585a46d4dc413599c600a7435c0e5 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Fri, 19 Apr 2024 16:39:48 +0530 Subject: [PATCH] Added msg id check for entered messages after channel attach --- src/IO.Ably.Tests.Shared/Realtime/PresenceSandboxSpecs.cs | 2 ++ 1 file changed, 2 insertions(+) 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();