We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 502b4b6 commit 7539cf9Copy full SHA for 7539cf9
1 file changed
tests/AbstractLoopTest.php
@@ -11,6 +11,8 @@ abstract class AbstractLoopTest extends TestCase
11
12
private $tickTimeout;
13
14
+ const PHP_DEFAULT_CHUNK_SIZE = 8192;
15
+
16
public function setUp()
17
{
18
// HHVM is a bit slow, so give it more time
@@ -228,7 +230,7 @@ public function testRemoveReadAndWriteStreamFromLoopOnceResourceClosesOnEndOfFil
228
230
});
229
231
232
// send data and close stream
- fwrite($other, str_repeat('.', 60000));
233
+ fwrite($other, str_repeat('.', static::PHP_DEFAULT_CHUNK_SIZE));
234
$this->loop->addTimer(0.01, function () use ($other) {
235
fclose($other);
236
0 commit comments