From 7aae29114b8386c8621635f9fee628516617a09c Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Sat, 3 Nov 2012 16:51:37 +0000 Subject: [PATCH] kill hanging tests --- tests/frontend/runner.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/frontend/runner.js b/tests/frontend/runner.js index 437e77687..89fe2b38d 100644 --- a/tests/frontend/runner.js +++ b/tests/frontend/runner.js @@ -116,6 +116,7 @@ $(function(){ return err; } + var killTimeout; runner.on('test end', function(test){ if ('passed' == test.state) { append("->","[green]PASSED[clear] :", test.title); @@ -124,6 +125,11 @@ $(function(){ } else { append("->","[red]FAILED[clear] :", test.title, stringifyException(test.err)); } + + if(killTimeout) clearTimeout(killTimeout); + killTimeout = setTimeout(function(){ + append("FINISHED - [red]no test started since 3 minutes, tests stopped[clear]"); + }, 60000 * 3); }); var total = runner.total;