Skip to content

Commit

Permalink
better test
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed May 7, 2019
1 parent 51b3a3f commit 7f8f1ff
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions tests/when_resetting_projections.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,6 @@ protected function when(): Generator
public function should_reset_the_projection(): void
{
$this->execute(function () {
$projectionStatus = \json_decode(
yield $this->projectionsManager->getStatusAsync(
$this->projectionName,
$this->credentials
),
true
);
$status = $projectionStatus['status'];

if ($status !== 'Running') {
$this->assertStringStartsWith('Preparing', $status);
}

yield new Delayed(500);

$projectionStatus = \json_decode(
Expand All @@ -89,7 +76,7 @@ public function should_reset_the_projection(): void
);
$status = $projectionStatus['status'];

$this->assertSame('Running', $status);
$this->assertTrue(\in_array($status, ['Starting/Initial', 'Running'], true));
});
}
}

0 comments on commit 7f8f1ff

Please sign in to comment.