diff --git a/monitor/spec/production_spec.rb b/monitor/spec/production_spec.rb index d3b97bc94..f55397b90 100755 --- a/monitor/spec/production_spec.rb +++ b/monitor/spec/production_spec.rb @@ -50,8 +50,10 @@ 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 - puts "[monitor] Waiting a bit for other connections to close..."; sleep 10 # www and the fakeJamClient really don't like going fast here + puts "[monitor] Waiting a bit for other any other connections to close..."; sleep 9 sign_in_poltergeist(user1) + puts "[monitor] Waiting a bit after sign-in..." + sleep 6 # www and the fakeJamClient really don't like going too fast here repeat_for(30.seconds) do expect(page).to_not have_selector('.no-websocket-connection') #looks for reconnect dialog every 1 second end