Permalink
Browse files

Clear the polling interval to avoid tests being completed twice.

  • Loading branch information...
1 parent 993e992 commit 883e35b9388470401917e1d56af6caad3c0d5f18 @StanAngeloff committed Dec 10, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/inject/main.js
View
@@ -126,8 +126,9 @@ var TestPage = require('./test/page'),
${CODE}
-setInterval(function() {
+var _interval = setInterval(function() {
if (_waiting <= 0) {
+ clearInterval(_interval);
console.log(_ansi.style('bold') + _ansi.style('underline') + (_title || ${FILE:encode}) + _ansi.style('reset'));
_pages.forEach(function(page) {
page._print();

0 comments on commit 883e35b

Please sign in to comment.