Ensure tests that timeout are marked as errors.

This commit is contained in:
John-David Dalton
2014-05-30 13:06:06 -04:00
parent f4a1573586
commit 1c3f9f7fbf

View File

@@ -417,7 +417,7 @@ function onJobStatus(error, res, body) {
platform = options.platforms[0],
description = browserName(platform[1]) + ' ' + platform[2] + ' on ' + capitalizeWords(platform[0]),
elapsed = (_.now() - this.timestamp) / 1000,
errored = !jobResult || reError.test(message) || reError.test(jobStatus),
errored = !_.isObject(jobResult) || !jobResult.passed || reError.test(message) || reError.test(jobStatus),
expired = (elapsed >= queueTimeout && !_.contains(jobStatus, 'in progress')),
failures = _.result(jobResult, 'failed'),
label = options.name + ':',