Skip to content

Commit

Permalink
Use getter for retrieving event loop
Browse files Browse the repository at this point in the history
  • Loading branch information
seregazhuk committed Mar 9, 2020
1 parent 3e1fbf5 commit df1e1e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/PromiseFulfillsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function it_fails_when_promise_doesnt_fulfill_in_a_specified_timeout(): v
$deferred = new Deferred();

$deferred->reject();
$promise = resolve($timeToResolve = 3, $this->loop);
$promise = resolve($timeToResolve = 3, $this->eventLoop());

$promise->then(static function() use ($deferred) {
$deferred->resolve();
Expand Down
2 changes: 1 addition & 1 deletion tests/PromiseFulfillsWithInstanceOfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function it_fails_when_promise_doesnt_fulfill_in_a_specified_timeout(): v
$deferred = new Deferred();

$deferred->reject();
$promise = resolve($timeToResolve = 3, $this->loop);
$promise = resolve($timeToResolve = 3, $this->eventLoop());

$promise->then(
static function() use ($deferred){
Expand Down
2 changes: 1 addition & 1 deletion tests/PromiseFulfillsWithTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function it_fails_when_promise_doesnt_fulfill_in_a_specified_timeout(): v
$deferred = new Deferred();

$deferred->reject();
$promise = resolve($timeToResolve = 3, $this->loop);
$promise = resolve($timeToResolve = 3, $this->eventLoop());

$promise->then(
static function () use ($deferred) {
Expand Down

0 comments on commit df1e1e1

Please sign in to comment.