Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMQP pushToQueue declares queue with default parameters #3

Open
Naktibalda opened this issue Apr 18, 2017 · 3 comments
Open

AMQP pushToQueue declares queue with default parameters #3

Naktibalda opened this issue Apr 18, 2017 · 3 comments

Comments

@Naktibalda
Copy link
Member

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

$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)

@sowebdev
Copy link

sowebdev commented Jun 1, 2018

Still happening. If queue_declare() cannot be removed, \Codeception\Module\AMQP::pushToQueue() should at least take additional parameters or an array for allowing override of default arguments passed to queue_declare().

@jeroenherczeg
Copy link

Same problem here. Current workaround is pushing to the exchange.

@Naktibalda Naktibalda transferred this issue from Codeception/Codeception Jan 9, 2021
@4selin
Copy link

4selin commented Jun 16, 2021

still there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants