From 606c2031fbdcdc2c84ed9b94dd6df96ab5dc3763 Mon Sep 17 00:00:00 2001 From: Anthony Davis Date: Thu, 11 Sep 2014 16:35:13 -0500 Subject: [PATCH] VRFS-2001 - order-dependent :=3 --- monitor/spec/production_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/monitor/spec/production_spec.rb b/monitor/spec/production_spec.rb index f55397b90..8c4dc5807 100755 --- a/monitor/spec/production_spec.rb +++ b/monitor/spec/production_spec.rb @@ -50,10 +50,9 @@ 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 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 + sleep 10 # 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 @@ -98,6 +97,9 @@ describe "Deployed site at #{www}", :js => true, :type => :feature, :capybara_fe as_monitor(user2) do sign_out_poltergeist(validate: true) end + + puts "[monitor] Waiting a bit to clean up connections..." + sleep 11 #to clean up user sessions on server end let(:queue_limit) { 5 }