Skip to content

Commit 575a282

Browse files
committed
Fix test by using old client code
1 parent fab4b57 commit 575a282

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
@@ -155,12 +155,12 @@ public function testWithEnabledEnvironmentalProxy()
155155
{
156156
putenv('http_proxy=' . $this->_getProxyUrl() . '/');
157157

158-
$client = $this->_getClient();
158+
$client = new \Elastica\Client();
159159

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

163-
$client = $this->_getClient();
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)