Codeception / Codeception/module-amqp

AMQP pushToQueue declares queue with default parameters

オープン
#3 コメント 4 件 リアクション 4 件 担当者 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)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。