Codeception / Codeception/module-amqp
Reconnect param on 3.0.1
- Dominant language
- PHP
- Stars
- 4
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
my tests fails after update version from 3.0.0 to 3.0.1. Issue:
_[Warning] Undefined array key "reconnect" at /var/www/html/vendor/codeception/module-amqp/src/Codeception/Module/AMQP.php:103_
It is about this line:
```
if ($this->config['reconnect']) {
$this->getChannel()->getConnection()->reconnect();
}
```
There is no `reconnect` param. Can you fix this i.e. by adding `isset` call?
Contributor guide
No contributing guide indexed for this repository
Research direction
Open Codeception/Module/AMQP.php at line 103 and inspect how the config array is read. Reproduce the warning with a configuration that omits reconnect, then verify the module no longer warns while still handling the reconnect setting when it is provided.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 58/100