fix tests

This commit is contained in:
Girish Ramakrishnan
2021-06-03 12:20:44 -07:00
parent c90a9e43cf
commit 8da4eaf4a3
27 changed files with 474 additions and 739 deletions

View File

@@ -6,7 +6,7 @@ exports = module.exports = {
resumeJobs
};
let apps = require('./apps.js'),
const apps = require('./apps.js'),
assert = require('assert'),
async = require('async'),
BoxError = require('./boxerror.js'),
@@ -119,6 +119,8 @@ function stopJobs(appId, appState, callback) {
}
function sync() {
if (constants.TEST) return;
apps.getAll(function (error, allApps) {
if (error) return debug(`sync: error getting app list. ${error.message}`);