diff --git a/src/IO.Ably.Tests.Shared/Realtime/ConnectionSandBoxSpecs.cs b/src/IO.Ably.Tests.Shared/Realtime/ConnectionSandBoxSpecs.cs index 7ed10bfd5..e7e303bca 100644 --- a/src/IO.Ably.Tests.Shared/Realtime/ConnectionSandBoxSpecs.cs +++ b/src/IO.Ably.Tests.Shared/Realtime/ConnectionSandBoxSpecs.cs @@ -1119,37 +1119,6 @@ public async Task WithDummyRecoverData_ShouldConnectAndSetAReasonOnTheConnection client.Connection.ErrorReason.Code.Should().Be(ErrorCodes.InvalidFormatForConnectionId); } - [Theory] - [ProtocolData] - [Trait("spec", "RTN16l")] - [Trait("spec", "RTN15c4")] - public async Task WithInvalidRecoverData_ShouldFailAndSetAReasonOnTheConnection(Protocol protocol) - { - var client = await GetRealtimeClient(protocol, (opts, _) => - { - opts.Recover = "{\"connectionKey\":\"random_key\",\"msgSerial\":5,\"channelSerials\":{\"channel1\":\"98\",\"channel2\":\"32\",\"channel3\":\"09\"}}"; - opts.AutoConnect = false; - }); - - ErrorInfo err = null; - client.Connection.On((args) => - { - err = args.Reason; - if (args.Current == ConnectionState.Failed) - { - ResetEvent.Set(); - } - }); - client.Connect(); - - var result = ResetEvent.WaitOne(10000); - result.Should().BeTrue("Timeout"); - err.Should().NotBeNull(); - err.Code.Should().Be(ErrorCodes.InvalidFormatForConnectionId); - client.Connection.ErrorReason.Code.Should().Be(ErrorCodes.InvalidFormatForConnectionId); - client.Connection.State.Should().Be(ConnectionState.Failed); - } - [Theory] [ProtocolData] [Trait("issue", "65")]