Codeception / Codeception/module-amqp

AMQP pushToQueue declares queue with default parameters

未关闭
#3 4 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
4
派生
9
PR 合并指标
30 天内没有已合并 PR

描述

https://github.com/Codeception/Codeception/blob/2.2.10/src/Codeception/Module/AMQP.php#L153

```php
$this->connection->channel()->queue_declare($queue);
```

If the queue is already declared it can cause error like this:
```
[PhpAmqpLib\Exception\AMQPProtocolChannelException] PRECONDITION_FAILED - inequivalent arg 'durable' for queue 'TEST.start' in vhost 'test_vhost': received 'false' but current is 'true'

Scenario Steps:

8. $I->pushToQueue("TEST.start","test") at tests/functional/startCest.php:53

```

I think that `queue_declare` call can be removed from `pushToQueue`, because separate `declareQueue` method was introduced in 2.2.9.
(Probably it is best to make this change in master branch)

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 src/Codeception/Module/AMQP.php 第153行附近开始,将 pushToQueue 与 2.2.9 中引入的独立 declareQueue 方法进行比较。查看 tests/functional/startCest.php 第53行附近,并验证向已声明的队列推送不再触发 durable 参数不等价错误。

由索引模型根据 Issue 内容生成。

评估

技术栈
php
领域
backend, testing-qa
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。