소스 검색

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 () {