Skip to content

Commit 27ae55c

Browse files
committed
Fix Pool constructor for pools 1.0 compatibility
1 parent 2481a62 commit 27ae55c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/e2e/Adapter/PoolTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Utopia\Database\Exception\Duplicate;
1515
use Utopia\Database\Exception\Limit;
1616
use Utopia\Database\PDO;
17+
use Utopia\Pools\Adapter\Stack;
1718
use Utopia\Pools\Pool as UtopiaPool;
1819

1920
class PoolTest extends Base
@@ -43,7 +44,7 @@ public function getDatabase(): Database
4344
$redis->flushAll();
4445
$cache = new Cache(new RedisAdapter($redis));
4546

46-
$pool = new UtopiaPool('mysql', 10, function () {
47+
$pool = new UtopiaPool(new Stack(), 'mysql', 10, function () {
4748
$dbHost = 'mysql';
4849
$dbPort = '3307';
4950
$dbUser = 'root';

0 commit comments

Comments
 (0)