Auto retry twice if test failed

This commit is contained in:
Gaël Métais
2014-08-11 11:27:50 +02:00
parent 709ee60db3
commit 3001009d3f
8 changed files with 85 additions and 34 deletions
@@ -18,6 +18,13 @@ var waitingQueueSocket = function(socket, testQueue) {
}
});
testQueue.on('testFailed', function(id) {
if (testId === id) {
socket.emit('failed');
console.log('Sending failed event to test id ' + testId);
}
});
testQueue.on('queueMoving', function() {
var positionInQueue = testQueue.indexOf(testId);
if (positionInQueue >= 0) {