VRFS-2001 debugging websocket issue
This commit is contained in:
parent
acdb0b6f9b
commit
926add8d65
|
|
@ -49,8 +49,8 @@ describe "Deployed site at #{www}", :js => true, :type => :feature, :capybara_fe
|
|||
|
||||
it "is possible for #{user1} to sign in and not get disconnected within 30 seconds" do
|
||||
as_monitor(user1) do
|
||||
sign_in_poltergeist(user1, validate: false)
|
||||
sleep 10 # www and the fakeJamClient really don't like going fast here
|
||||
sign_in_poltergeist(user1)
|
||||
puts "Waiting for 15 whole seconds before checking websocket connection"; sleep 15 # www and the fakeJamClient really don't like going fast here
|
||||
repeat_for(30.seconds) do
|
||||
expect(page).to_not have_selector('.no-websocket-connection') #looks for reconnect dialog every 1 second
|
||||
end
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ def repeat_for(duration=Capybara.default_wait_time)
|
|||
puts "Running for #{duration} seconds..."
|
||||
finish_time = Time.now + duration.seconds
|
||||
loop do
|
||||
print '.' # "#{(Time.now - finish_time + duration.seconds).round(3)} "
|
||||
print "#{(Time.now - finish_time + duration.seconds).round(3)}s, "
|
||||
yield
|
||||
sleep 1 # by default this will execute the block every 1 second
|
||||
break if (Time.now > finish_time)
|
||||
|
|
|
|||
Loading…
Reference in New Issue