From 4b5c2a7d0e6b8cb8b15ab6714d811c15d1c7fed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20David=20Ib=C3=A1=C3=B1ez?= Date: Fri, 5 Feb 2021 16:45:38 +0100 Subject: [PATCH] Fix testHttpTimeout --- tests/AblyRestTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/AblyRestTest.php b/tests/AblyRestTest.php index 79c6bfa..1aca39d 100644 --- a/tests/AblyRestTest.php +++ b/tests/AblyRestTest.php @@ -398,13 +398,13 @@ public function testHttpTimeout() { $ablyTimeout = new AblyRest( [ 'key' => 'fake.key:veryFake', - 'httpRequestTimeout' => 50, // 50 ms + 'httpRequestTimeout' => 20, // 20 ms ]); $ably->http->get('https://cdn.ably.io/lib/ably.js'); // should work $this->expectException(AblyRequestException::class); $this->expectExceptionCode(50003); - $ablyTimeout->http->get('https://cdn.ably.io/lib/ably.js'); // guaranteed to take more than 50 ms + $ablyTimeout->http->get('https://cdn.ably.io/lib/ably.js'); // guaranteed to take more than 20 ms } }