message: Improve the ws test.
diff: @@ -5,10 +5,19 @@ swoole_http_client_coro: websocket bug use client in server
  --FILE--
  <?php
  require_once __DIR__ . '/../include/bootstrap.php';
  -$ws = new swoole_websocket_server('127.0.0.1', 9501);
  -$ws->set(['worker_num' => 1]);
  -$ws->on('workerStart', function (swoole_websocket_server $serv) {
  - $cli = new Swoole\Coroutine\Http\Client("127.0.0.1", 9501);
  +$pm = new \ProcessManager;
  +$pm->parentFunc = function () use ($pm) {
  + $pm->kill();
  +};
  +$pm->childFunc = function () use ($pm) {
  + $port = get_one_free_port();
  + $ws = new swoole_websocket_server('127.0.0.1', $port);
  + $ws->set([
  + 'log_file' => '/dev/null',
  + 'worker_num' => 1
  + ]);
  + $ws->on('workerStart', function (swoole_websocket_server $serv) use ($pm, $port) {
  + $cli = new Swoole\Coroutine\Http\Client("127.0.0.1", $port);
  $cli->set(['timeout' => -1]);
  $ret = $cli->upgrade('/');
  assert($ret);
  @@ -19,7 +28,7 @@ $ws->on('workerStart', function (swoole_websocket_server $serv) {
  co::sleep(0.1);
  }
  $cli->close();
  - $serv->shutdown();
  + $pm->wakeup();
  });
  $ws->on('open', function (swoole_websocket_server $ws, swoole_http_request $request) {
  $ws->push($request->fd, "server: hello, welcome\n");
  @@ -33,6 +42,9 @@ $ws->on('close', function (swoole_websocket_server $ws, int $fd) {
  echo "client-{$fd} is closed\n";
  });
  $ws->start();
  +};
  +$pm->childFirst();
  +$pm->run();
  ?>
  --EXPECT--
  server: hello, welcome
  