Skip to content

Commit

Permalink
fix(dbrunner): Increase timeout to 60s
Browse files Browse the repository at this point in the history
Some slow machines (HDD) need more time on configuring the machine.
  • Loading branch information
pan93412 committed Oct 15, 2024
1 parent e0d16be commit 0668fbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Service/DbRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
private SqlFormatter $formatter;

/**
* @param float $timeout The timeout in seconds. Default is 3 seconds.
* @param float $timeout The timeout in seconds. Default is 60 seconds.
*/
public function __construct(
protected float $timeout = 3,
protected float $timeout = 60,
) {
$this->formatter = new SqlFormatter();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Service/DbRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public function testRunQuery(string $schema, string $query, ?array $expect, ?str

public function testRunQueryCte(): void
{
$dbrunner = new DbRunner();
$dbrunner = new DbRunner(1);

$schema = "CREATE TABLE test (
id INTEGER PRIMARY KEY,
Expand Down

0 comments on commit 0668fbe

Please sign in to comment.