1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2025-01-03 14:32:40 +00:00

Fix PostgreSQL tests when using "trust" authentication

This commit is contained in:
J. King 2019-10-11 13:04:15 -04:00
parent cf5c08459f
commit cb1039326c
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ class TestCreation extends \JKingWeb\Arsse\Test\AbstractTest {
public function testFailToConnect() {
// we cannnot distinguish between different connection failure modes
self::setConf([
'dbPostgreSQLPass' => (string) rand(),
'dbPostgreSQLHost' => "example.invalid",
]);
$this->assertException("connectionFailure", "Db");
new Driver;

View file

@ -65,7 +65,7 @@ class TestCreation extends \JKingWeb\Arsse\Test\AbstractTest {
public function testFailToConnect() {
// PDO dies not distinguish between different connection failure modes
self::setConf([
'dbPostgreSQLPass' => (string) rand(),
'dbPostgreSQLHost' => "example.invalid",
]);
$this->assertException("connectionFailure", "Db");
new Driver;