update mq status controller

This commit is contained in:
2026-03-17 10:37:02 +08:00
parent fcd376cab4
commit a5189f46ca
2 changed files with 88 additions and 89 deletions
@@ -31,7 +31,7 @@ class MqStatusControllerTest extends TestCase
// 连接不可用时返回 500,仍验证响应格式
$response->assertJsonStructure(['code', 'message', 'data']);
$this->assertSame(500, $response->json('code'));
return;
$this->markTestSkipped('RabbitMQ not available');
}
$response->assertStatus(200);
@@ -61,8 +61,7 @@ class MqStatusControllerTest extends TestCase
$status = $response->getStatusCode();
if ($status === 500) {
// RabbitMQ 不可用,跳过具体数据验证
return;
$this->markTestSkipped('RabbitMQ not available');
}
$response->assertStatus(200);