From 3054ce52fa302401cb362401d4d86593fe1ce869 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Fri, 19 Apr 2024 00:20:26 +0530 Subject: [PATCH] Removed unnecessary isdefault host check from tests --- src/IO.Ably.Shared/Http/AblyHttpOptions.cs | 3 --- src/IO.Ably.Tests.Shared/Rest/ChannelSandboxSpecs.cs | 2 -- 2 files changed, 5 deletions(-) diff --git a/src/IO.Ably.Shared/Http/AblyHttpOptions.cs b/src/IO.Ably.Shared/Http/AblyHttpOptions.cs index 3edbcfb17..69a25d994 100644 --- a/src/IO.Ably.Shared/Http/AblyHttpOptions.cs +++ b/src/IO.Ably.Shared/Http/AblyHttpOptions.cs @@ -25,8 +25,6 @@ internal class AblyHttpOptions internal TimeSpan FallbackRetryTimeOut { get; set; } - public bool IsDefaultHost { get; set; } = true; - internal string[] FallbackHosts { get; set; } internal bool FallbackHostsUseDefault { get; set; } @@ -64,7 +62,6 @@ public AblyHttpOptions(ClientOptions options) IsSecure = options.Tls; Port = options.Tls ? options.TlsPort : options.Port; Host = options.FullRestHost(); - IsDefaultHost = options.IsDefaultRestHost; DisconnectedRetryTimeout = options.DisconnectedRetryTimeout; SuspendedRetryTimeout = options.SuspendedRetryTimeout; HttpOpenTimeout = options.HttpOpenTimeout; diff --git a/src/IO.Ably.Tests.Shared/Rest/ChannelSandboxSpecs.cs b/src/IO.Ably.Tests.Shared/Rest/ChannelSandboxSpecs.cs index 2bb067a9e..7688292e8 100644 --- a/src/IO.Ably.Tests.Shared/Rest/ChannelSandboxSpecs.cs +++ b/src/IO.Ably.Tests.Shared/Rest/ChannelSandboxSpecs.cs @@ -244,7 +244,6 @@ public async Task IdempotentPublishing_SimulateErrorAndRetry(Protocol protocol) { // setting IsDefaultHost and raising a TaskCanceledException // will cause the request to retry - client.HttpClient.Options.IsDefaultHost = true; throw new TaskCanceledException("faked exception to cause retry"); } @@ -301,7 +300,6 @@ public async Task IdempotentPublishing_WithClientSpecificMessage_ShouldRetry(Pro { // setting IsDefaultHost and raising a TaskCanceledException // will cause the request to retry - client.HttpClient.Options.IsDefaultHost = true; throw new TaskCanceledException("faked exception to cause retry"); }