Commit da3029b4 authored by anonym's avatar anonym
Browse files

Always wait 2 minutes for Unsafe Browser phone-home on start.

Waiting for a random amount of time just seems like it could cause us
to miss phone-home type traffic.
parent 61af376f
......@@ -74,13 +74,6 @@ Then /^the live user owns its home dir and it has normal permissions$/ do
assert_equal("700", perms)
end
Given /^I wait between (\d+) and (\d+) seconds$/ do |min, max|
next if @skip_steps_while_restoring_background
time = rand(max.to_i - min.to_i + 1) + min.to_i
puts "Slept for #{time} seconds"
sleep(time)
end
Then /^no unexpected services are listening for network connections$/ do
next if @skip_steps_while_restoring_background
netstat_cmd = @vm.execute("netstat -ltupn")
......
......@@ -1036,3 +1036,14 @@ Then /^I force Tor to use a new circuit( in Vidalia)?$/ do |with_vidalia|
@vm.execute_successfully('. /usr/local/lib/tails-shell-library/tor.sh; tor_control_send "signal NEWNYM"')
end
end
Given /^I wait (?:between (\d+) and )?(\d+) seconds$/ do |min, max|
next if @skip_steps_while_restoring_background
if min
time = rand(max.to_i - min.to_i + 1) + min.to_i
else
time = max.to_i
end
puts "Slept for #{time} seconds"
sleep(time)
end
......@@ -57,7 +57,7 @@ Feature: Browsing the web using the Unsafe Browser
But checking for updates is disabled in the Unsafe Browser's configuration
When I successfully start the Unsafe Browser
Then the Unsafe Browser has started
And I wait between 60 and 120 seconds
And I wait 120 seconds
And the clearnet user has not sent packets out to the Internet
And all Internet traffic has only flowed through Tor
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment