summaryrefslogtreecommitdiffstats
path: root/features
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2017-03-02 08:41:52 +0000
committerintrigeri <intrigeri@boum.org>2017-03-02 08:41:52 +0000
commitc8fff2530310041ea597c6b3c6d2bd158fbddc83 (patch)
tree16c23f8295ef69af97998fbec7a0cc87e83a17d0 /features
parentee16b49eb15b62277755c5b90e0561a29c9ab29c (diff)
parentf70dca933ae4493d8bbd07af2e39918df06a0880 (diff)
Merge remote-tracking branch 'origin/stable' into stable
Diffstat (limited to 'features')
-rw-r--r--features/support/helpers/misc_helpers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/support/helpers/misc_helpers.rb b/features/support/helpers/misc_helpers.rb
index 0b77a7d..4a55286 100644
--- a/features/support/helpers/misc_helpers.rb
+++ b/features/support/helpers/misc_helpers.rb
@@ -99,11 +99,11 @@ end
def force_new_tor_circuit()
debug_log("Forcing new Tor circuit...")
# Tor rate limits NEWNYM to at most one per 10 second period.
- rate = 10
+ interval = 10
if $__last_newnym
elapsed = Time.now - $__last_newnym
# We sleep an extra second to avoid tight timings.
- sleep rate - elapsed + 1 if 0 < elapsed && elapsed < rate
+ sleep interval - elapsed + 1 if 0 < elapsed && elapsed < interval
end
$vm.execute_successfully('tor_control_send "signal NEWNYM"', :libs => 'tor')
$__last_newnym = Time.now