diff --git a/lib/token-pool.spec.js b/lib/token-pool.spec.js index de2e79ba72..1c62f2707f 100644 --- a/lib/token-pool.spec.js +++ b/lib/token-pool.spec.js @@ -41,6 +41,14 @@ describe('The token pool', function() { }) describe('serializeDebugInfo should initially return the expected', function() { + beforeEach(function() { + sinon.useFakeTimers({ now: 1544307744484 }) + }) + + afterEach(function() { + sinon.restore() + }) + context('sanitize is not specified', function() { it('returns fully sanitized results', function() { // This is `sha()` of '1', '2', '3', '4', '5'. These are written @@ -66,7 +74,7 @@ describe('The token pool', function() { usesRemaining: batchSize, })), sanitized: true, - utcEpochSeconds: (Date.now() / 1000) | 0, + utcEpochSeconds: 1544307744, }) }) }) @@ -86,7 +94,7 @@ describe('The token pool', function() { usesRemaining: batchSize, })), sanitized: false, - utcEpochSeconds: (Date.now() / 1000) | 0, + utcEpochSeconds: 1544307744, } ) }) diff --git a/services/jenkins/jenkins-coverage.tester.js b/services/jenkins/jenkins-coverage.tester.js index 6fcd6ff56a..16a78b6024 100644 --- a/services/jenkins/jenkins-coverage.tester.js +++ b/services/jenkins/jenkins-coverage.tester.js @@ -173,6 +173,7 @@ t.create('cobertura: job not found') t.create('cobertura: job found') .get('/c/https/builds.apache.org/job/olingo-odata4-cobertura.json') + .timeout(10000) .expectJSONTypes( Joi.object().keys({ name: 'coverage', value: isIntegerPercentage }) )