Maybe Events are the problem?
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Abel Hoogeveen 2020-05-19 22:19:55 +02:00
parent 19f11d9c7e
commit 1dacc29d86
No known key found for this signature in database
GPG Key ID: 96C2234920BF4292
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,7 @@ use FuzeWorks\Async\Supervisors\ParallelSuperVisor;
use FuzeWorks\Async\Task;
use FuzeWorks\Async\Tasks;
use FuzeWorks\Async\TaskStorage;
use FuzeWorks\Events;
use PHPUnit\Framework\TestCase;
class ParallelSuperVisorTest extends TestCase
@ -68,6 +69,9 @@ class ParallelSuperVisorTest extends TestCase
$this->taskStorage = $tasks->getTaskStorage();
$this->taskStorage->reset();
// Clear events
Events::$listeners = [];
// And load the ShellExecutor using the execution settings
$this->executor = new ShellExecutor([
'bootstrapFile' => dirname(__DIR__) . DIRECTORY_SEPARATOR,