Skip to content

Commit 57033c0

Browse files
committed
refactor: simplify AMQP tests by commenting out unused connection class and adding debug output
- Commented out the AMQPSwooleConnection in the connection class array to streamline test configuration. - Added a debug output statement in the testEventsWithConnection method for troubleshooting purposes. - Removed the Swoole extension check from the testConcurrency method to avoid unnecessary test skips.
1 parent ad824a3 commit 57033c0

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

tests/Queue/E2E/Adapter/AMQPTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function connectionsProvider(): array
1818
{
1919
return [
2020
'AMQPStreamConnection' => [AMQPStreamConnection::class],
21-
'AMQPSwooleConnection' => [AMQPSwooleConnection::class],
21+
// 'AMQPSwooleConnection' => [AMQPSwooleConnection::class],
2222
];
2323
}
2424

@@ -44,6 +44,7 @@ protected function getQueue(): Queue
4444
*/
4545
public function testEventsWithConnection(string $connectionClass): void
4646
{
47+
var_dump("Hello");
4748
$this->connectionClass = $connectionClass;
4849
parent::testEvents();
4950
}

tests/Queue/E2E/Adapter/Base.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ public function testEvents(): void
7474

7575
public function testConcurrency(): void
7676
{
77-
if (!extension_loaded('swoole')) {
78-
$this->markTestSkipped('Swoole extension is not available');
79-
}
80-
8177
run(function () {
8278
$publisher = $this->getPublisher();
8379
go(function () use ($publisher) {

0 commit comments

Comments
 (0)