Skip to content

Commit

Permalink
FIX: Removes timeout from processes
Browse files Browse the repository at this point in the history
  • Loading branch information
Udaberrico committed Jan 4, 2024
1 parent 581ce11 commit 6c29d60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Support/PostgresHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public function createDatabase(): Process|bool
command: ['createdb', '--host', $this->host, '--port', $this->port, '--username', $this->userName, '--owner', $this->userName, $this->name],
env: ['PGPASSWORD' => $this->password]
);
$process->setTimeout(0); // 0 = no timeout

$process->run();

Expand All @@ -100,6 +101,7 @@ public function dropDatabase(): Process|bool
command: ['dropdb', '--host', $this->host, '--port', $this->port, '--username', $this->userName, '--force', $this->name],
env: ['PGPASSWORD' => $this->password]
);
$process->setTimeout(0); // 0 = no timeout

$process->run();

Expand All @@ -113,6 +115,7 @@ public function restoreSnapshot(string $filePath): Process
env: ['PGPASSWORD' => $this->password]
);

$process->setTimeout(0); // 0 = no timeout
$process->run();

return $process;
Expand Down

0 comments on commit 6c29d60

Please sign in to comment.