test: dont clear local when testing

This commit is contained in:
Barış Soner Uşaklı
2025-02-18 11:57:28 -05:00
parent f282407322
commit 669755d1e9
2 changed files with 6 additions and 2 deletions

View File

@@ -28,8 +28,11 @@ const total = _.cloneDeep(local);
const runJobs = nconf.get('runJobs');
Analytics.pause = false;
Analytics.init = async function () {
new cronJob('*/10 * * * * *', (async () => {
if (Analytics.pause) return;
publishLocalAnalytics();
if (runJobs) {
await sleep(2000);