Skip to content

Commit 024993d

Browse files
committed
Reverting changes for HttpTest::testWithEnabledEnvironmentalProxy to see if old versions passes
1 parent 575a282 commit 024993d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/lib/Elastica/Test/Transport/HttpTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,14 @@ public function testWithEnvironmentalProxy()
153153

154154
public function testWithEnabledEnvironmentalProxy()
155155
{
156-
putenv('http_proxy=' . $this->_getProxyUrl() . '/');
156+
putenv('http_proxy=http://127.0.0.1:12346/');
157157

158158
$client = new \Elastica\Client();
159159

160160
$transferInfo = $client->request('/_nodes')->getTransferInfo();
161161
$this->assertEquals(403, $transferInfo['http_code']);
162162

163-
$client = new \Elastica\Client();
163+
$client = new \Elastica\Client();
164164
$client->getConnection()->setProxy('');
165165
$transferInfo = $client->request('/_nodes')->getTransferInfo();
166166
$this->assertEquals(200, $transferInfo['http_code']);

0 commit comments

Comments
 (0)