test(messaging): run fan-out coroutine tests only without native Swoole

Tests/Unit runs in the Appwrite container (PHP 8.5) with the native Swoole
extension, where these tests' real Co\run()/batch() scheduler runs in-process
and destabilises later coroutine-sensitive tests in the shared unit suite
(the run aborted mid-suite at ~126/644 inside the Network/Fetcher tests).
Skip them under native Swoole; they still run locally via the Fiber polyfill,
and the real worker path is covered by the e2e Messaging suite.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jake BarnbyandClaude Opus 4.8 committed 2026-06-03 04:45:32 +12:00
1 parent e2278a7370
commit c5551258fe
1 file changed
+12
@@ -363,6 +363,18 @@ class MessagingFanoutTest extends TestCase
{
private const RECIPIENT_COUNT = 4500;
protected function setUp(): void
{
// These tests drive the worker through real Swoole coroutines (Co\run/batch). Under the native
// extension that scheduler runs in-process and destabilises later tests in the shared unit suite
// (the run aborts mid-suite inside unrelated coroutine-sensitive tests). They run locally against
// the Fiber polyfill in SwooleCoroutinePolyfill.php; the real worker path is exercised on CI by the
// e2e Messaging suite. See PR #12465.
if (\extension_loaded('swoole')) {
$this->markTestSkipped('Fan-out coroutine tests run only without the native Swoole extension; the worker path is covered on CI by the e2e Messaging suite.');
}
}
private function provider(): Document
{
return new Document([