Everything is working fine when I use the package in real conditions.
However, I can't make tests on commands that are implementing the WithoutOverlapping trait: the first test is OK but all other tests are throwing the Illuminated\Console\MutexRuntimeException: Command is running now! error.
I verified by adding a dd('test') in the releaseMutexLock from the NinjaMutex\Lock\FlockLock (default file strategy is set with no timeout) and 4 tests are executed before the mutex is released.
Is there a way to force the mutex to be released after each test ?
Steps to reproduce:
Implement a command and write several tests in a same test class, the mutex will not be released between each test.
Expected:
The mutex should be released right after the command has finished.
Actual:
The mutex is not released right after the command has finished.
Versions:
Description:
Everything is working fine when I use the package in real conditions.
However, I can't make tests on commands that are implementing the
WithoutOverlapping
trait: the first test is OK but all other tests are throwing theIlluminated\Console\MutexRuntimeException: Command is running now!
error.I verified by adding a
dd('test')
in thereleaseMutexLock
from theNinjaMutex\Lock\FlockLock
(default file strategy is set with no timeout) and 4 tests are executed before the mutex is released.Is there a way to force the mutex to be released after each test ?
Steps to reproduce:
Implement a command and write several tests in a same test class, the mutex will not be released between each test.
Expected:
The mutex should be released right after the command has finished.
Actual:
The mutex is not released right after the command has finished.