Commit cc887599 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Do not use Ruby Timeout module in GitLab QA

parent 3619ce04
require 'timeout'
module QA module QA
module Page module Page
module Main module Main
...@@ -7,14 +5,13 @@ module QA ...@@ -7,14 +5,13 @@ module QA
def initialize def initialize
visit('/') visit('/')
# This resolves cold boot / post-deployment migrations running # This resolves cold boot / background tasks problems
# problems.
# #
Timeout.timeout(240) do start = Time.now
loop do
break if page.has_css?('.application', wait: 10) while Time.now - start < 240
refresh break if page.has_css?('.application', wait: 10)
end refresh
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment