fix tests

pull/248/head
David Goodwin 7 years ago
parent b4564958a1
commit 0afdb5619b

@ -12,8 +12,6 @@ $CONF['language_hook'] = '';
$db_file = dirname(__FILE__) . '/postfixadmin.sqlite.test';
touch($db_file);
$CONF['database_type'] = 'sqlite';
$CONF['database_name'] = $db_file;
@ -26,5 +24,14 @@ if (file_exists($db_file)) {
unlink($db_file);
}
touch($db_file);
list($db, $error_text) = db_connect_with_errors();
if($db === false) {
echo "failed to connect to database\n";
echo $error_text;
exit(1);
}
require_once(dirname(__FILE__) . '/../public/upgrade.php');

Loading…
Cancel
Save