Skip to content

Commit

Permalink
spec: more runner solidification
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Jan 24, 2014
1 parent 9662c9b commit 8d5d045
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/runner.rb
Expand Up @@ -44,7 +44,7 @@
}

begin
Selenium::WebDriver::Wait.new(timeout: 120, interval: 5) \
Selenium::WebDriver::Wait.new(timeout: 540, interval: 5) \
.until { not browser.find_element(:css, 'p#totals').text.strip.empty? }

totals = browser.find_element(:css, 'p#totals').text
Expand All @@ -53,7 +53,7 @@
puts "#{totals} in #{duration}"
puts

if totals =~ /0 failures/
if totals =~ / 0 failures/
exit 0
end

Expand Down Expand Up @@ -92,6 +92,7 @@
trials += 1

unless trials >= 4
browser.quit
retry
end
end
Expand Down

0 comments on commit 8d5d045

Please sign in to comment.