From 6ae052cdb19a27c6b18a63db6bfa086d56bc4a45 Mon Sep 17 00:00:00 2001 From: Andy Ford Date: Thu, 1 Feb 2024 14:14:49 +0000 Subject: [PATCH] Update ably/realtime_channel_integration_test.go Co-authored-by: sachin shinde --- ably/realtime_channel_integration_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ably/realtime_channel_integration_test.go b/ably/realtime_channel_integration_test.go index 206b6f11..68aec2d5 100644 --- a/ably/realtime_channel_integration_test.go +++ b/ably/realtime_channel_integration_test.go @@ -317,7 +317,8 @@ func TestRealtimeChannel_SetsNoLimitIfServerNoLimits(t *testing.T) { } // Wait for a little bit for things to settle - time.Sleep(1 * time.Second) + err := ablytest.Wait(ablytest.ConnWaiter(c, c.Connect, ably.ConnectionEventConnected), nil) + assert.NoError(t, err) // Check that the connection read limit is the default - due to websocket.go // Only allowing the value to be set if the connection is a certain type