mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
Manage exceed maximum duration for our test
This commit is contained in:
parent
54d4507281
commit
874fd5b952
@ -34,17 +34,25 @@ const waitingCallback = (error, body, id) => {
|
||||
})
|
||||
}, 2000)
|
||||
} else {
|
||||
const test = body['js tests'][0]
|
||||
let passed = false
|
||||
const test = body['js tests'][0]
|
||||
let passed = false
|
||||
let errorStr = false
|
||||
|
||||
if (test.result !== null) {
|
||||
passed = test.result.total === test.result.passed
|
||||
if (typeof test.result === 'string' && test.result === 'Test exceeded maximum duration') {
|
||||
errorStr = test.result
|
||||
} else {
|
||||
passed = test.result.total === test.result.passed
|
||||
}
|
||||
}
|
||||
|
||||
console.log(`Tested ${testURL}`)
|
||||
console.log(`Platform: ${test.platform.join(',')}`)
|
||||
console.log(`Passed: ${passed.toString()}`)
|
||||
console.log(`Url ${test.url} \n`)
|
||||
if (errorStr) {
|
||||
console.error(errorStr)
|
||||
}
|
||||
|
||||
if (passed) {
|
||||
jobsSuccess++
|
||||
|
Loading…
Reference in New Issue
Block a user