Skip to content

Commit

Permalink
[TEST] Fix bug where skips in setup are ignored
Browse files Browse the repository at this point in the history
A semi-recent refactor of the setup code forgot to handle skips
that might occur in the setup.  This commit fixes the handling of those
skips
  • Loading branch information
polyfractal committed Apr 8, 2014
1 parent f1092c5 commit 21c8698
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/Elasticsearch/Tests/YamlRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,12 @@ public function testYaml()
$this->clearCluster();

if ($setup !== null) {
$this->executeTestCase($setup, $testFile);
try {
$this->executeTestCase($setup, $testFile);
} catch (SetupSkipException $e) {
break; //exit this test since we skipped in the setup
}

}
$this->executeTestCase($doc['values'], $testFile);

Expand Down

0 comments on commit 21c8698

Please sign in to comment.