Skip to content

Commit

Permalink
Fixed http timeout test, updated with working url
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Mar 18, 2024
1 parent 5c92fb9 commit b8485f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/AblyRestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit b8485f4

Please sign in to comment.