summaryrefslogtreecommitdiff
path: root/test/integration/test_http_proxy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/test_http_proxy.rb')
-rw-r--r--test/integration/test_http_proxy.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/integration/test_http_proxy.rb b/test/integration/test_http_proxy.rb
index a59eb60..f963d4f 100644
--- a/test/integration/test_http_proxy.rb
+++ b/test/integration/test_http_proxy.rb
@@ -29,8 +29,7 @@ class TestHTTPProxy < NetSSHTest
def setup_ssh_env(&block)
tmpdir do |dir|
@key_id_rsa = "#{dir}/id_rsa"
- sh "rm -rf #{@key_id_rsa} #{@key_id_rsa}.pub"
- sh "ssh-keygen -q -f #{@key_id_rsa} -t rsa -N ''"
+ ssh_keygen @key_id_rsa, "rsa"
set_authorized_key(user, "#{@key_id_rsa}.pub")
yield
end