ソースを参照

Fix unstable test

chinpei215 9 年 前
コミット
e5c49792fe
1 ファイル変更2 行追加2 行削除
  1. 2 2
      tests/TestCase/Network/Http/Adapter/StreamTest.php

+ 2 - 2
tests/TestCase/Network/Http/Adapter/StreamTest.php

@@ -41,7 +41,7 @@ class CakeStreamWrapper implements \ArrayAccess
         }
 
         $this->_stream = fopen('php://memory', 'rb+');
-        fwrite($this->_stream, str_repeat('x', 10000));
+        fwrite($this->_stream, str_repeat('x', 20000));
         rewind($this->_stream);
 
         return true;
@@ -148,7 +148,7 @@ class StreamTest extends TestCase
         $responses = $stream->send($request, []);
         $this->assertInstanceOf('Cake\Network\Http\Response', $responses[0]);
 
-        $this->assertEquals(10000, strlen($responses[0]->body()));
+        $this->assertEquals(20000, strlen($responses[0]->body()));
     }
 
     /**