From 3feca76eab2ac19b2d697038a2e634d2ffab107d Mon Sep 17 00:00:00 2001 From: "marcin.cebo" Date: Wed, 17 Jun 2026 16:54:51 +0200 Subject: [PATCH 1/3] Dummy change --- tests/integrational/AddChannelChannelGroupEndpointTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integrational/AddChannelChannelGroupEndpointTest.php b/tests/integrational/AddChannelChannelGroupEndpointTest.php index c57d9560..6a4d0998 100644 --- a/tests/integrational/AddChannelChannelGroupEndpointTest.php +++ b/tests/integrational/AddChannelChannelGroupEndpointTest.php @@ -51,6 +51,7 @@ public function testGroupMissing() $addChannelChannelGroup->channels(["c|h1", "ch2s"])->sync(); } + // my comment public function testGroupIsEmpty() { $this->expectException(PubNubValidationException::class); From ab4497d4066ac16ebb6792f57f3a18fde7cb1946 Mon Sep 17 00:00:00 2001 From: "marcin.cebo" Date: Wed, 17 Jun 2026 17:30:05 +0200 Subject: [PATCH 2/3] Add sleep --- tests/integrational/PublishTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/integrational/PublishTest.php b/tests/integrational/PublishTest.php index 61fba0df..149bae2a 100644 --- a/tests/integrational/PublishTest.php +++ b/tests/integrational/PublishTest.php @@ -12,6 +12,8 @@ class PublishTest extends \PubNubTestCase { + private const PUBLISH_DELAY_MILLISECONDS = 50; + /** * @param Publish $publish */ @@ -29,10 +31,19 @@ private function assertSuccess($publish) $this->assertEquals($result->getTimetoken(), $envelope->getResult()->getTimetoken()); + $this->delayBetweenPublishes(); + $publish->clear(); $result2 = $publish->sync(); $this->assertNotEquals($result->getTimetoken(), $result2->getTimetoken()); + + $this->delayBetweenPublishes(); + } + + private function delayBetweenPublishes(): void + { + usleep(self::PUBLISH_DELAY_MILLISECONDS * 1000); } /** From 35f64e4d9acbeef37f3506348d00f83d9f2a6017 Mon Sep 17 00:00:00 2001 From: "marcin.cebo" Date: Wed, 17 Jun 2026 17:54:35 +0200 Subject: [PATCH 3/3] Add sleep --- tests/integrational/PublishTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integrational/PublishTest.php b/tests/integrational/PublishTest.php index 149bae2a..3b689955 100644 --- a/tests/integrational/PublishTest.php +++ b/tests/integrational/PublishTest.php @@ -12,7 +12,7 @@ class PublishTest extends \PubNubTestCase { - private const PUBLISH_DELAY_MILLISECONDS = 50; + private const PUBLISH_DELAY_MILLISECONDS = 1000; /** * @param Publish $publish