Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Sep 28, 2023
1 parent 65b8d16 commit 49527ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DuskServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
namespace Orchestra\Testbench\Dusk;

use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use Orchestra\Testbench\Dusk\Exceptions\UnableToStartServer;
use Orchestra\Testbench\Foundation\Env;
use Symfony\Component\Process\PhpExecutableFinder;
use Symfony\Component\Process\Process;

use function Orchestra\Testbench\package_path;

class DuskServer
Expand Down Expand Up @@ -166,6 +166,9 @@ protected function startServer(): void

$this->process->setWorkingDirectory($this->laravelPublicPath());
$this->process->start();
$this->process->waitUntil(function ($type, $output) {
return Str::contains($output ?? '', "Development Server (http://{$this->host}:{$this->port}) started");
});
}

/**
Expand Down

0 comments on commit 49527ac

Please sign in to comment.