From 28c88498aec63029cecc9d1fe3f17ee626672ac6 Mon Sep 17 00:00:00 2001 From: Lewis Marshall Date: Tue, 30 Jul 2024 09:38:10 +0100 Subject: [PATCH] WIP test against the lmars-dev cluster Signed-off-by: Lewis Marshall --- ably/realtime_conn_spec_integration_test.go | 2 +- ably/rest_client_integration_test.go | 2 +- ablytest/ablytest.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ably/realtime_conn_spec_integration_test.go b/ably/realtime_conn_spec_integration_test.go index 18b473812..420e1e658 100644 --- a/ably/realtime_conn_spec_integration_test.go +++ b/ably/realtime_conn_spec_integration_test.go @@ -222,7 +222,7 @@ func Test_RTN4a_ConnectionEventForStateChange(t *testing.T) { t.Run(fmt.Sprintf("on %s", ably.ConnectionStateFailed), func(t *testing.T) { options := []ably.ClientOption{ - ably.WithEnvironment("sandbox"), + ably.WithEnvironment("lmars-dev"), ably.WithAutoConnect(false), ably.WithKey("made:up"), } diff --git a/ably/rest_client_integration_test.go b/ably/rest_client_integration_test.go index bf4c823b0..0f034bb8c 100644 --- a/ably/rest_client_integration_test.go +++ b/ably/rest_client_integration_test.go @@ -814,7 +814,7 @@ func postStats(app *ablytest.Sandbox, stats []*ably.Stats) error { return fmt.Errorf("marshaling stats: %w", err) } - req, err := http.NewRequest("POST", "https://sandbox-rest.ably.io/stats", bytes.NewReader(statsJSON)) + req, err := http.NewRequest("POST", "https://lmars-dev-rest.ably.io/stats", bytes.NewReader(statsJSON)) if err != nil { return fmt.Errorf("creating request: %w", err) } diff --git a/ablytest/ablytest.go b/ablytest/ablytest.go index fc7b83630..e97829728 100644 --- a/ablytest/ablytest.go +++ b/ablytest/ablytest.go @@ -17,7 +17,7 @@ import ( var Timeout = 30 * time.Second var NoBinaryProtocol bool var DefaultLogLevel = ably.LogNone -var Environment = "sandbox" +var Environment = "lmars-dev" func nonil(err ...error) error { for _, err := range err {