dmitry-ivanov / laravel-console-mutex

Mutex for Laravel Console Commands.
MIT License
139 stars 31 forks source link

save temporary variable to be allowed release mutex manually. #25

Closed alexbleon closed 3 years ago

alexbleon commented 3 years ago

I've meet with problem when cover console command with WithoutOverlapping using unit-test. PHPUnit don't release default mutex before all tests end. So I suggest to make possible release mutext by customer in the end of console command. To allow batch of unit-tests pass

dmitry-ivanov commented 3 years ago

@alexbleon Thank you for your contribution, but there's a simpler solution for unit tests.

Does it help?

alexbleon commented 3 years ago

You are right. Thanks you a lot