From 1d5e766db7ab467d81a2bb4e3855763921deef5f Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Fri, 19 Apr 2024 13:33:45 +0530 Subject: [PATCH] Removed unnecessary test for fallbacks with default host --- .../Realtime/ConnectionAttemptsInfoSpecs.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/IO.Ably.Tests.Shared/Realtime/ConnectionAttemptsInfoSpecs.cs b/src/IO.Ably.Tests.Shared/Realtime/ConnectionAttemptsInfoSpecs.cs index 02f7d8e38..5d07db566 100644 --- a/src/IO.Ably.Tests.Shared/Realtime/ConnectionAttemptsInfoSpecs.cs +++ b/src/IO.Ably.Tests.Shared/Realtime/ConnectionAttemptsInfoSpecs.cs @@ -57,15 +57,6 @@ public void ShouldSuspend_WhenFirstAttemptEqualOrGreaterThanConnectionStateTtl_S state.ShouldSuspend(now.ValueFn).Should().BeTrue("When time is greater than"); // > } - [Fact] - public async Task CanAttemptFallback_ShouldBeFalseWithNonDefaultHost() - { - var client = GetRealtime(opts => opts.RealtimeHost = "test.test.com"); - - var result = await client.RestClient.CanFallback(null); - result.Should().BeFalse(); - } - [Theory] [InlineData(500)] [InlineData(501)] @@ -84,7 +75,7 @@ public async Task CanAttemptFallback_WithDefaultHostAndAppropriateError_ShouldBe public async Task CanAttemptFallback_WhenInternetCheckFails_ShouldBeFalse() { var client = GetRealtime(internetCheckOk: false); - var result = await client.RestClient.CanFallback(null); + var result = await client.RestClient.CanFallback(ErrorInfo.ReasonUnknown); result.Should().BeFalse(); }