Skip to content

Commit

Permalink
fix MYSQL_PASSWORD typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 4, 2024
1 parent 0aa0360 commit f377ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/mutex/MutexConcurrencyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ static function (string $uri): \Redis {
if (getenv('MYSQL_DSN')) {
$cases['MySQLMutex'] = [static function ($timeout = 3): Mutex {
var_dump([getenv('MYSQL_DSN'), getenv('MYSQL_USER'), getenv('MYSQL_USER')]);
$pdo = new \PDO(getenv('MYSQL_DSN'), getenv('MYSQL_USER'), getenv('MYSQL_USER'));
$pdo = new \PDO(getenv('MYSQL_DSN'), getenv('MYSQL_USER'), getenv('MYSQL_PASSWORD'));
$pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);

return new MySQLMutex($pdo, 'test', $timeout);
Expand Down

0 comments on commit f377ce8

Please sign in to comment.