Remove cloudron.config prior to every test run

This commit is contained in:
Johannes Zellner
2015-08-30 22:27:10 -07:00
parent 816dea91ec
commit 9c9b17a5f0
+4
View File
@@ -96,6 +96,7 @@ function initConfig() {
name: 'boxtest'
};
data.token = 'APPSTORE_TOKEN';
data.aws.backupBucket = 'testbucket';
} else {
assert(false, 'Unknown environment. This should not happen!');
}
@@ -109,6 +110,9 @@ function initConfig() {
saveSync();
}
// cleanup any old config file we have for tests
if (exports.TEST) safe.fs.unlinkSync(cloudronConfigFileName);
initConfig();
// set(obj) or set(key, value)