0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

might help stop sqlite test conflicts

This commit is contained in:
David Goodwin 2021-01-25 22:08:36 +00:00
parent 84ad0ebec7
commit d576aafd67

View File

@ -11,7 +11,8 @@ $CONF['default_language'] = 'en';
$CONF['language_hook'] = '';
if (getenv('DATABASE') == 'sqlite' || getenv('DATABASE') == false) {
$db_file = dirname(__FILE__) . '/postfixadmin.sqlite.test';
$version = PHP_VERSION_ID; // try and stop different tests running at the same trying to use the same sqlite db at once
$db_file = dirname(__FILE__) . '/postfixadmin.sqlite.' . $version . '.test';
$CONF['database_type'] = 'sqlite';
$CONF['database_name'] = $db_file;
Config::write('database_type', 'sqlite');