Codeception / module-amqp

AMQP module for Codeception
MIT License
3 stars 6 forks source link

added a reconnect configuration for ability to reconnect before each test #17

Open OtezVikentiy opened 8 months ago

OtezVikentiy commented 8 months ago

I came across a situation where, while running a huge number of tests with queues, they started to crash. If you do not use the single_channel option, then the number of open channels will overflow and the corresponding error will appear. If you use it, then for some reason an error begins to appear stating that it is not possible to create an exchange or queue. I was able to overcome this problem by adding a reconnect before each test next to the cleanup, thereby deleting all previous unused channels.