Fix app test
This commit is contained in:
@@ -122,6 +122,10 @@ CloudronError.SELF_UPGRADE_NOT_SUPPORTED = 'Self upgrade not supported';
|
|||||||
function initialize(callback) {
|
function initialize(callback) {
|
||||||
assert.strictEqual(typeof callback, 'function');
|
assert.strictEqual(typeof callback, 'function');
|
||||||
|
|
||||||
|
gConfigState = { dns: false, tls: false, configured: false };
|
||||||
|
gUpdatingDns = false;
|
||||||
|
gBoxAndUserDetails = null;
|
||||||
|
|
||||||
async.series([
|
async.series([
|
||||||
installAppBundle,
|
installAppBundle,
|
||||||
checkConfigState,
|
checkConfigState,
|
||||||
|
|||||||
+1
-1
@@ -64,7 +64,7 @@ function saveSync() {
|
|||||||
fs.writeFileSync(cloudronConfigFileName, JSON.stringify(data, null, 4)); // functions are ignored by JSON.stringify
|
fs.writeFileSync(cloudronConfigFileName, JSON.stringify(data, null, 4)); // functions are ignored by JSON.stringify
|
||||||
}
|
}
|
||||||
|
|
||||||
function _reset (callback) {
|
function _reset(callback) {
|
||||||
safe.fs.unlinkSync(cloudronConfigFileName);
|
safe.fs.unlinkSync(cloudronConfigFileName);
|
||||||
|
|
||||||
initConfig();
|
initConfig();
|
||||||
|
|||||||
+977
-1253
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -271,7 +271,7 @@ function getEmailDnsRecords(callback) {
|
|||||||
function ignoreError(what, func) {
|
function ignoreError(what, func) {
|
||||||
return function (callback) {
|
return function (callback) {
|
||||||
func(function (error) {
|
func(function (error) {
|
||||||
if (error && process.env.BOX_ENV !== 'test') console.error('Ignored error - ' + what + ':', error);
|
if (error) debug('Ignored error - ' + what + ':', error);
|
||||||
|
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user