Updated test for the start command
This commit is contained in:
parent
a2fc559e0b
commit
fd82904a9e
|
|
@ -240,10 +240,16 @@ class StartWebSocketServer extends Command
|
||||||
|
|
||||||
$this->buildServer();
|
$this->buildServer();
|
||||||
|
|
||||||
if (! $this->option('test')) {
|
// For testing, just boot up the server, run it
|
||||||
/* 🛰 Start the server 🛰 */
|
// but exit after the next tick.
|
||||||
$this->server->run();
|
if ($this->option('test')) {
|
||||||
|
$this->loop->futureTick(function () {
|
||||||
|
$this->loop->stop();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 🛰 Start the server 🛰 */
|
||||||
|
$this->server->run();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue