Skip to content

Commit

Permalink
no mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 4, 2024
1 parent 90d9018 commit 6b2cb59
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/mutex/MutexConcurrencyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,12 @@ static function ($timeout = 3) use ($dsn, $user, $password) {
];
};

if (getenv('MYSQL_DSN')) {
/* if (getenv('MYSQL_DSN')) {
$dsn = getenv('MYSQL_DSN');
$user = getenv('MYSQL_USER');
$password = getenv('MYSQL_PASSWORD');
$addPDO($dsn, $user, $password, 'mysql');
}
} */

if (getenv('PGSQL_DSN')) {
$dsn = getenv('PGSQL_DSN');
Expand Down Expand Up @@ -322,14 +322,14 @@ static function (string $uri): \Redis {
}
}

if (getenv('MYSQL_DSN')) {
/* if (getenv('MYSQL_DSN')) {
$cases['MySQLMutex'] = [static function ($timeout = 3): Mutex {
$pdo = new \PDO(getenv('MYSQL_DSN'), getenv('MYSQL_USER'), getenv('MYSQL_USER'));
$pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
return new MySQLMutex($pdo, 'test', $timeout);
}];
}
} */

if (getenv('PGSQL_DSN')) {
$cases['PgAdvisoryLockMutex'] = [static function (): Mutex {
Expand Down

0 comments on commit 6b2cb59

Please sign in to comment.