You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When forcing a job to timeout, the expected result of the onFailure result should have a timeout property in the error object, in this case it doesn't:
it('Should emit a failure if job timeout is set and hit',function(done){global.singleJob=functionsingleJob(){returnnewPromise((resolve)=>{setTimeout(resolve,2000);});};Hook.create('test',{runs: 'singleJob',},{timeout: 1000,}).onFailure(result=>{assert.equal(result.error.timeout,true);done();});});
When forcing a job to timeout, the expected result of the onFailure result should have a timeout property in the error object, in this case it doesn't:
result:
The text was updated successfully, but these errors were encountered: