Skip to content

Commit d0a1c51

Browse files
committed
Update tests to accomodate for new rate limit check
1 parent 801e318 commit d0a1c51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ConnectionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@ public function testClientContinuesWithRequestAfterGettingAccessTokenWhenNoneGiv
140140
public function testClientDetectsApiRateLimit()
141141
{
142142
$responseStatusCode = 429;
143-
$responseHeaderName = 'Retry-After';
144-
$responseHeaderValue = 300;
143+
$responseHeaderName = 'RateLimit-Remaining';
144+
$responseHeaderValue = 60;
145145

146-
//Note that middlewares are processed 'LIFO': first the response header should be added, then an exception thrown
146+
// Note that middlewares are processed 'LIFO': first the response header should be added, then an exception thrown
147147
$additionalMiddlewares = [
148148
$this->getMiddleWareThatThrowsBadResponseException($responseStatusCode),
149149
$this->getMiddleWareThatAddsResponseHeader($responseHeaderName, $responseHeaderValue),

0 commit comments

Comments
 (0)