From b8485f4a7a31bae1b0de38e93ee113ba40abc2b9 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Mon, 18 Mar 2024 17:19:26 +0530 Subject: [PATCH] Fixed http timeout test, updated with working url --- tests/AblyRestTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/AblyRestTest.php b/tests/AblyRestTest.php index ec7207f..704fab7 100644 --- a/tests/AblyRestTest.php +++ b/tests/AblyRestTest.php @@ -496,10 +496,10 @@ public function testHttpTimeout() { 'httpRequestTimeout' => 20, // 20 ms ]); - $ably->http->get('https://cdn.ably.io/lib/ably.js'); // should work + $ably->http->get('https://rest.ably.io/time'); // should work $this->expectException(AblyRequestException::class); $this->expectExceptionCode(50003); - $ablyTimeout->http->get('https://cdn.ably.io/lib/ably.js'); // guaranteed to take more than 20 ms + $ablyTimeout->http->get('https://rest.ably.io/time'); // guaranteed to take more than 20 ms } }