Browse Source

Remove duplicated config line in testTimeOutConnection method

salehhashemi1992 2 years ago
parent
commit
255f04b23f
1 changed files with 0 additions and 1 deletions
  1. 0 1
      tests/TestCase/Network/SocketTest.php

+ 0 - 1
tests/TestCase/Network/SocketTest.php

@@ -216,7 +216,6 @@ class SocketTest extends TestCase
         try {
             $this->assertTrue($this->Socket->connect());
 
-            $config = ['host' => '127.0.0.1', 'timeout' => 1];
             $this->Socket = new Socket($config);
             $this->assertNull($this->Socket->read(1024 * 1024));
             $this->assertSame('2: ' . 'Connection timed out', $this->Socket->lastError());