Validate the test even when it's in timeout

This commit is contained in:
Gaël Métais
2014-09-03 13:38:40 +02:00
parent bd3bf06940
commit 565d1185ab
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -81,6 +81,12 @@ var PhantomasWrapper = function() {
err = 1001;
}
// Don't cancel test if it is a timeout
if (err === 252) {
console.log('Timeout after ' + options.timeout + ' seconds. But it\'s not a problem, the test is valid.');
err = null;
}
if (err) {
console.log('Attempt failed for test id ' + task.testId + '. Error code ' + err);
}