Browse Source

test: Wait longer for cron

Girish Ramakrishnan 7 years ago
parent
commit
c94ea4794c
1 changed files with 2 additions and 1 deletions
  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 () {