Time out if we can't load suite info within 60 seconds.

This commit is contained in:
Christian Williams & Kim Eric Mittler 2009-09-02 12:36:51 -07:00
parent 268cb0c6c5
commit ca6b23684e

View File

@ -51,7 +51,9 @@ module Jasmine
end
def load_suite_info
while !eval_js('jsApiReporter.started') do
started = Time.now
while !eval_js('jsApiReporter && jsApiReporter.started') do
raise "couldn't connect to Jasmine after 60 seconds" if (started + 60 < Time.now)
sleep 0.1
end