Explorar el Código

test: Wait longer for cron

Girish Ramakrishnan hace 7 años
padre
commit
c94ea4794c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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 () {