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:
parent
84ad0ebec7
commit
d576aafd67
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user