File tree Expand file tree Collapse file tree 4 files changed +18
-1
lines changed
Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 11# Changes between versions
22
3+ ## Unreleased (2025)
4+
5+ * Upgrade JanePHP generated code
6+ * Improve the Cursor paginated methods, add missing and remove obsoletes
7+
38## 4.7.1 (2024-06-28)
49
510* Upgrade JanePHP generated code
Original file line number Diff line number Diff line change @@ -62,6 +62,10 @@ public function testAllCursorPaginationMethodExists()
6262 $ getterMethod = 'get ' . $ getterMethod ;
6363 $ method = lcfirst (str_replace ('iterate ' , '' , $ methodName ));
6464
65+ if ($ _SERVER ['CI ' ] ?? false ) {
66+ sleep (5 ); // @see https://github.com/jolicode/slack-php-api/issues/163
67+ }
68+
6569 $ responseFromMethod = $ client ->{$ method }($ this ->argumentsForCursorPaginationRequest ($ method , $ client ));
6670
6771 self ::assertTrue (
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ protected function createClient(?string $token = null): Client
3131 // On GitHub Action, we get rate limit issues with Slack API calls because tests are run in parallel
3232 // This "sleep" method tries to share the load.
3333 if ($ _SERVER ['CI ' ] ?? false ) {
34- sleep (rand ( 1 , 10 ));
34+ sleep (5 ); // @see https://github.com/jolicode/slack-php-api/issues/163
3535 }
3636
3737 return ClientFactory::create (null === $ token ? $ _SERVER ['SLACK_TOKEN ' ] : $ token );
Original file line number Diff line number Diff line change @@ -88,6 +88,10 @@ public function testItCanPostAMessageAndThenAThreadResponse(): void
8888 'text ' => 'First message ' ,
8989 ]);
9090
91+ if ($ _SERVER ['CI ' ] ?? false ) {
92+ sleep (5 ); // @see https://github.com/jolicode/slack-php-api/issues/163
93+ }
94+
9195 $ response2 = $ client ->chatPostMessage ([
9296 'username ' => 'User B ' ,
9397 'channel ' => $ _SERVER ['SLACK_TEST_CHANNEL ' ],
@@ -150,6 +154,10 @@ public function testItCanMarkConversation(): void
150154
151155 $ ts = $ response ->getTs ();
152156
157+ if ($ _SERVER ['CI ' ] ?? false ) {
158+ sleep (5 ); // @see https://github.com/jolicode/slack-php-api/issues/163
159+ }
160+
153161 $ markResponse = $ client ->conversationsMark ([
154162 'channel ' => $ _SERVER ['SLACK_TEST_CHANNEL ' ],
155163 'ts ' => $ ts ,
You can’t perform that action at this time.
0 commit comments