Skip to content

Commit

Permalink
[TEST] fix handling of format for Cat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Jul 20, 2017
1 parent b70b933 commit a24b7d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Elasticsearch/Tests/YamlRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ public function operationDo($operation, $lastOperationResult, &$context, $testNa

// TODO remove this after cat testing situation resolved
if ($caller instanceof Elasticsearch\Namespaces\CatNamespace) {
$endpointParams->format = 'text';
if (!isset($endpointParams->format)) {
$endpointParams->format = 'text';
}
}

// Exist* methods have to be manually 'unwrapped' into true/false for async
Expand Down

0 comments on commit a24b7d1

Please sign in to comment.