1
0
Fork 0

Simplify ProtocolStreamWriterTest

pull/128/head^2
Felix Becker 2016-10-31 10:23:37 +01:00
parent bec24383d4
commit ff0a35d833
1 changed files with 3 additions and 6 deletions

View File

@ -23,13 +23,10 @@ class ProtocolStreamWriterTest extends TestCase
$msgString = (string)$msg; $msgString = (string)$msg;
$promise = $writer->write($msg); $promise = $writer->write($msg);
$promise->then(function () {
Loop\stop();
}, function () {
Loop\stop();
});
Loop\run(); Loop\tick();
$promise->wait();
fclose($writeHandle); fclose($writeHandle);