Skip to content

Commit

Permalink
ignore tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-yulin committed Dec 8, 2019
1 parent 44d08d0 commit b920658
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/PromiseA.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ public function then(?callable $onFulfilled = null, ?callable $onRejected = null
{
return self::create(function (callable $resolve, callable $reject) use ($onFulfilled, $onRejected) {
while ($this->state == PromiseInterface::STATE_PENDING) {
// @codeCoverageIgnoreStart
usleep(25000);
// @codeCoverageIgnoreEnd
}
$callable = $this->isFulfilled() ? $onFulfilled : $onRejected;
if (!is_callable($callable)) {
Expand Down Expand Up @@ -192,7 +194,9 @@ private function setResult($value): void
$value->then($callable, $callable);
// resolve async locking error
while (!$resolved) {
// @codeCoverageIgnoreStart
usleep(25000);
// @codeCoverageIgnoreEnd
}
} else {
$this->result = $value;
Expand Down

0 comments on commit b920658

Please sign in to comment.