diff --git a/src/Service/DbRunner.php b/src/Service/DbRunner.php index 4251802..689e0c1 100644 --- a/src/Service/DbRunner.php +++ b/src/Service/DbRunner.php @@ -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(); } diff --git a/tests/Service/DbRunnerTest.php b/tests/Service/DbRunnerTest.php index b10ec97..7b6f068 100644 --- a/tests/Service/DbRunnerTest.php +++ b/tests/Service/DbRunnerTest.php @@ -274,7 +274,7 @@ public function testRunQuery(string $schema, string $query, ?array $expect, ?str public function testRunQueryCte(): void { - $dbrunner = new DbRunner(); + $dbrunner = new DbRunner(5); $schema = "CREATE TABLE test ( id INTEGER PRIMARY KEY,