Simplify ProtocolStreamWriterTest
parent
bec24383d4
commit
ff0a35d833
|
@ -23,13 +23,10 @@ class ProtocolStreamWriterTest extends TestCase
|
|||
$msgString = (string)$msg;
|
||||
|
||||
$promise = $writer->write($msg);
|
||||
$promise->then(function () {
|
||||
Loop\stop();
|
||||
}, function () {
|
||||
Loop\stop();
|
||||
});
|
||||
|
||||
Loop\run();
|
||||
Loop\tick();
|
||||
|
||||
$promise->wait();
|
||||
|
||||
fclose($writeHandle);
|
||||
|
||||
|
|
Loading…
Reference in New Issue