Skip to content

Commit

Permalink
Update FunctionResolveTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
woodongwong committed Aug 31, 2021
1 parent 2279162 commit 16ab807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/FunctionResolveTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ public function shouldSupportVeryDeepNestedPromises()
{
$deferreds = [];

for ($i = 0; $i < 250; $i++) {
for ($i = 0; $i < 150; $i++) {
$deferreds[] = $d = new Deferred();
$p = $d->promise();

$last = $p;
for ($j = 0; $j < 250; $j++) {
for ($j = 0; $j < 150; $j++) {
$last = $last->then(function ($result) {
return $result;
});
Expand Down

0 comments on commit 16ab807

Please sign in to comment.