File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ),
You can’t perform that action at this time.
0 commit comments