robfig/revel — pull request #383 by mceldeen (2013-11-30 20:35:51+00:00)
Title: Fix timing issues with testrunner webpage.

Move running += 1 up before the call to runTest(button). runTest(button) is async. If the ajax call finishes before running can be incremented (and there is only one test) then running will go negative. When this happens, the run all tests button will be permanently disabled until the page is refreshed.