Преглед изворни кода

test: Wait longer for cron

Girish Ramakrishnan пре 7 година
родитељ
комит
c94ea4794c
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      test/test.js

+ 2 - 1
test/test.js

@@ -247,7 +247,8 @@ describe('Application life cycle test', function () {
     it('can login', login.bind(null, username, password));
 
     it('runs cron jobs', function (done) {
-        this.timeout(120000);
+        this.timeout(6 * 60 * 1000); // cron runs only every 5 minutes
+        console.log('It can take upto 6 mins to detect that cron is working');
 
         // cron jobs are only executed when app is running and healthy
         setTimeout(function () {