Minor test updates for jenkins coverage and token-pool (#2509)
This commit is contained in:
committed by
Pierre-Yves B
parent
bd930faf24
commit
d74568b9c9
@@ -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,
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
@@ -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 })
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user