From 53fd107806e1fb3a9cfdefce17386d035a48b7e5 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Thu, 27 Apr 2023 11:30:58 +0530 Subject: [PATCH] Removed unnecessary duplicate test from the presence sandbox spec --- .../Realtime/PresenceSandboxSpecs.cs | 52 ------------------- 1 file changed, 52 deletions(-) diff --git a/src/IO.Ably.Tests.Shared/Realtime/PresenceSandboxSpecs.cs b/src/IO.Ably.Tests.Shared/Realtime/PresenceSandboxSpecs.cs index 2927fb588..476baa83f 100644 --- a/src/IO.Ably.Tests.Shared/Realtime/PresenceSandboxSpecs.cs +++ b/src/IO.Ably.Tests.Shared/Realtime/PresenceSandboxSpecs.cs @@ -1623,58 +1623,6 @@ await WaitForMultiple(3, partialDone => client.Close(); } - [Theory] - [ProtocolData] - [Trait("spec", "RTP16b")] - public async Task ChannelStateCondition_WhenQueueMessagesIsFalse_WhenChannelIsInitializedOrAttaching_MessageAreNotPublished(Protocol protocol) - { - var client = await GetRealtimeClient(protocol, (options, settings) => - { - options.ClientId = "RTP16b"; - options.QueueMessages = false; - }); - var channel = GetRandomChannel(client, "RTP16a"); - - await client.WaitForState(ConnectionState.Connected); - client.Workflow.QueueCommand(SetDisconnectedStateCommand.Create(null)); - await client.WaitForState(ConnectionState.Disconnected); - - channel.Presence.Enter(client.Connection.State.ToString(), (b, info) => { }); - - Presence.QueuedPresenceMessage[] presenceMessages = channel.Presence.PendingPresenceQueue.ToArray(); - - presenceMessages.Should().HaveCount(0); - - // clean up - client.Close(); - } - - [Theory] - [ProtocolData] - [Trait("spec", "RTP16b")] - public async Task ChannelStateCondition_WhenQueueMessagesIsFalse_RealtimeWorkflowQueueShouldntAllowMessagesToPublish(Protocol protocol) - { - var client = await GetRealtimeClient(protocol, (options, settings) => - { - options.ClientId = "RTP16b"; - options.QueueMessages = false; - }); - var channel = GetRandomChannel(client, "RTP16a"); - - await client.WaitForState(ConnectionState.Connected); - client.Workflow.QueueCommand(SetDisconnectedStateCommand.Create(null)); - await client.WaitForState(ConnectionState.Disconnected); - - channel.Presence.Enter(client.Connection.State.ToString(), (b, info) => { }); - - Presence.QueuedPresenceMessage[] presenceMessages = channel.Presence.PendingPresenceQueue.ToArray(); - - presenceMessages.Should().HaveCount(0); - - // clean up - client.Close(); - } - [Theory] [ProtocolData] [Trait("spec", "RTP16b")]