exit out faster

This commit is contained in:
John Bintz 2011-04-12 07:29:00 -04:00
parent 36b882841e
commit 39a1132293

View File

@ -106,6 +106,7 @@ void HeadlessSpecRunner::errorLog(const QString &msg, int lineNumber, const QStr
std::cout << std::endl; std::cout << std::endl;
hasErrors = true; hasErrors = true;
m_runs = 0;
m_ticker.start(200, this); m_ticker.start(200, this);
} }
@ -149,7 +150,7 @@ void HeadlessSpecRunner::timerEvent(QTimerEvent *event)
if (event->timerId() != m_ticker.timerId()) if (event->timerId() != m_ticker.timerId())
return; return;
if (hasErrors && m_runs > 5) if (hasErrors && m_runs > 2)
QApplication::instance()->exit(1); QApplication::instance()->exit(1);
if (!hasElement(".jasmine_reporter") && !hasElement(".runner.running")) if (!hasElement(".jasmine_reporter") && !hasElement(".runner.running"))