Skip to content
Permalink
Browse files

Fix unstable test

  • Loading branch information...
chinpei215 committed May 31, 2016
1 parent 515775e commit e5c49792fec134ac22df3f670c149c5a986470a2
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/TestCase/Network/Http/Adapter/StreamTest.php
@@ -41,7 +41,7 @@ public function stream_open($path, $mode, $options, &$openedPath)
}
$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 @@ public function testSendByUsingCakephpProtocol()
$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()));
}
/**

0 comments on commit e5c4979

Please sign in to comment.
You can’t perform that action at this time.