Fix app test

This commit is contained in:
Girish Ramakrishnan
2017-02-06 21:53:29 -08:00
parent 02bcff2223
commit 9d3cf990d1
4 changed files with 983 additions and 1255 deletions

View File

@@ -122,6 +122,10 @@ CloudronError.SELF_UPGRADE_NOT_SUPPORTED = 'Self upgrade not supported';
function initialize(callback) {
assert.strictEqual(typeof callback, 'function');
gConfigState = { dns: false, tls: false, configured: false };
gUpdatingDns = false;
gBoxAndUserDetails = null;
async.series([
installAppBundle,
checkConfigState,

View File

@@ -64,7 +64,7 @@ function saveSync() {
fs.writeFileSync(cloudronConfigFileName, JSON.stringify(data, null, 4)); // functions are ignored by JSON.stringify
}
function _reset (callback) {
function _reset(callback) {
safe.fs.unlinkSync(cloudronConfigFileName);
initConfig();

File diff suppressed because it is too large Load Diff

View File

@@ -271,7 +271,7 @@ function getEmailDnsRecords(callback) {
function ignoreError(what, func) {
return function (callback) {
func(function (error) {
if (error && process.env.BOX_ENV !== 'test') console.error('Ignored error - ' + what + ':', error);
if (error) debug('Ignored error - ' + what + ':', error);
callback();
});