From e7f9c3c7220618438830cd36361db5089351cf81 Mon Sep 17 00:00:00 2001 From: Bruno Wagner Date: Mon, 12 Sep 2016 10:00:23 -0300 Subject: Added a small sleep before each login check To ensure we don't overload the server with requests, we'll sleep a little bit before each request to check if the inbox is already loaded --- service/test/reactor/concurrent_logins.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'service/test/reactor') diff --git a/service/test/reactor/concurrent_logins.rb b/service/test/reactor/concurrent_logins.rb index 38bdac5f..4f3165de 100644 --- a/service/test/reactor/concurrent_logins.rb +++ b/service/test/reactor/concurrent_logins.rb @@ -46,6 +46,7 @@ def complete_login(user_index, user, password) if status_code.to_i == 200 interstitial = Time.now begin + sleep 0.05 inbox = `#{check_inbox(user_index)}` end until /compose-trigger/.match(inbox) puts "Login loading #{sprintf('%.3f',Time.now - interstitial)}" -- cgit v1.2.3