From d5bb76548a3e48a27978a646715366fa34cf380b Mon Sep 17 00:00:00 2001 From: Lewis Marshall Date: Mon, 12 Aug 2024 19:24:16 +0100 Subject: [PATCH] WIP use ably-realtime-nonprod.com for fallbacks Signed-off-by: Lewis Marshall --- src/IO.Ably.Shared/Defaults.cs | 10 +++++----- src/IO.Ably.Tests.Shared/DefaultTests.cs | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/IO.Ably.Shared/Defaults.cs b/src/IO.Ably.Shared/Defaults.cs index e0fbbc06a..863dda5a5 100644 --- a/src/IO.Ably.Shared/Defaults.cs +++ b/src/IO.Ably.Shared/Defaults.cs @@ -87,11 +87,11 @@ internal static string[] GetEnvironmentFallbackHosts(string environment) { return new[] { - $"{environment}-a-fallback.ably-realtime.com", - $"{environment}-b-fallback.ably-realtime.com", - $"{environment}-c-fallback.ably-realtime.com", - $"{environment}-d-fallback.ably-realtime.com", - $"{environment}-e-fallback.ably-realtime.com", + $"{environment}-a-fallback.ably-realtime-nonprod.com", + $"{environment}-b-fallback.ably-realtime-nonprod.com", + $"{environment}-c-fallback.ably-realtime-nonprod.com", + $"{environment}-d-fallback.ably-realtime-nonprod.com", + $"{environment}-e-fallback.ably-realtime-nonprod.com", }; } } diff --git a/src/IO.Ably.Tests.Shared/DefaultTests.cs b/src/IO.Ably.Tests.Shared/DefaultTests.cs index 030415123..aad8e7667 100644 --- a/src/IO.Ably.Tests.Shared/DefaultTests.cs +++ b/src/IO.Ably.Tests.Shared/DefaultTests.cs @@ -27,11 +27,11 @@ public void Defaults_WithEnvironment_ReturnsEnvironmentFallbackHosts() { var expectedFallBackHosts = new[] { - "lmars-dev-a-fallback.ably-realtime.com", - "lmars-dev-b-fallback.ably-realtime.com", - "lmars-dev-c-fallback.ably-realtime.com", - "lmars-dev-d-fallback.ably-realtime.com", - "lmars-dev-e-fallback.ably-realtime.com", + "lmars-dev-a-fallback.ably-realtime-nonprod.com", + "lmars-dev-b-fallback.ably-realtime-nonprod.com", + "lmars-dev-c-fallback.ably-realtime-nonprod.com", + "lmars-dev-d-fallback.ably-realtime-nonprod.com", + "lmars-dev-e-fallback.ably-realtime-nonprod.com", }; var fallbackHosts = Defaults.GetEnvironmentFallbackHosts("lmars-dev"); Assert.Equal(expectedFallBackHosts, fallbackHosts);