@@ -161,15 +161,15 @@ func TestRealtime_RTN17_HostFallback(t *testing.T) {
161161
162162 t .Run ("RTN17a: First attempt should be made on default primary host" , func (t * testing.T ) {
163163 visitedHosts := initClientWithConnError (errors .New ("host url is wrong" ))
164- assert .Equal (t , "realtime.ably.io " , visitedHosts [0 ])
164+ assert .Equal (t , "main. realtime.ably.net " , visitedHosts [0 ])
165165 })
166166
167167 t .Run ("RTN17b: Fallback behaviour" , func (t * testing.T ) {
168168 t .Parallel ()
169169
170170 t .Run ("apply when default realtime endpoint is not overridden, port/tlsport not set" , func (t * testing.T ) {
171171 visitedHosts := initClientWithConnError (getTimeoutErr ())
172- expectedPrimaryHost := "realtime.ably.io "
172+ expectedPrimaryHost := "main. realtime.ably.net "
173173 expectedFallbackHosts := ably .DefaultFallbackHosts ()
174174
175175 assert .Equal (t , 6 , len (visitedHosts ))
@@ -188,7 +188,7 @@ func TestRealtime_RTN17_HostFallback(t *testing.T) {
188188 t .Run ("apply when fallbacks are provided" , func (t * testing.T ) {
189189 fallbacks := []string {"fallback0" , "fallback1" , "fallback2" }
190190 visitedHosts := initClientWithConnError (getTimeoutErr (), ably .WithFallbackHosts (fallbacks ))
191- expectedPrimaryHost := "realtime.ably.io "
191+ expectedPrimaryHost := "main. realtime.ably.net "
192192
193193 assert .Equal (t , 4 , len (visitedHosts ))
194194 assert .Equal (t , expectedPrimaryHost , visitedHosts [0 ])
0 commit comments