Skip to content

Commit

Permalink
Hackish way to resolve gc_collect_cycles test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Feb 5, 2020
1 parent 7adbbf2 commit 01d9c86
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/DeferredTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ class DeferredTest extends TestCase
{
use PromiseTest\FullTestTrait;

public function setUp()
{
enqueue(function (): void {});
gc_collect_cycles();
}

public function getPromiseTestAdapter(callable $canceller = null)
{
$d = new Deferred($canceller);
Expand Down

0 comments on commit 01d9c86

Please sign in to comment.