Skip to content

Commit

Permalink
Modify cluster-clearing behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Jan 20, 2014
1 parent b814211 commit 6738578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Elasticsearch/Tests/YamlRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ private function clearCluster()
{
echo "\n>>>CLEARING<<<\n";
$host = YamlRunnerTest::getHostEnvVar();
$ch = curl_init($host);
$ch = curl_init($host."/*");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);

$response = curl_exec($ch);
curl_close($ch);

$ch = curl_init($host."/_template/test");
$ch = curl_init($host."/_template/*");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
Expand Down

0 comments on commit 6738578

Please sign in to comment.