update mq status controller
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user