diff options
author | Bruno Wagner <bwagner@riseup.net> | 2016-09-12 10:00:23 -0300 |
---|---|---|
committer | Bruno Wagner <bwagner@riseup.net> | 2016-09-12 10:00:23 -0300 |
commit | e7f9c3c7220618438830cd36361db5089351cf81 (patch) | |
tree | 17b6c0af0a7b4934b6ccc8a9baae7fbae9b61b5f | |
parent | 69cbc6713bb156a845e9a616b35927cfce8cf70c (diff) |
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
-rw-r--r-- | service/test/reactor/concurrent_logins.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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)}" |