Skip to content

Commit

Permalink
Removed unnecessary duplicate test from the presence sandbox spec
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Apr 27, 2023
1 parent 43b8d14 commit 53fd107
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions src/IO.Ably.Tests.Shared/Realtime/PresenceSandboxSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 53fd107

Please sign in to comment.