Skip to content

Commit

Permalink
WIP use ably-realtime-nonprod.com for fallbacks
Browse files Browse the repository at this point in the history
Signed-off-by: Lewis Marshall <[email protected]>
  • Loading branch information
lmars committed Aug 12, 2024
1 parent eb887f6 commit d5bb765
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/IO.Ably.Shared/Defaults.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};
}
}
Expand Down
10 changes: 5 additions & 5 deletions src/IO.Ably.Tests.Shared/DefaultTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d5bb765

Please sign in to comment.