summaryrefslogtreecommitdiffstats
path: root/test/utils.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-08-13 22:53:45 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-08-24 21:01:09 +0900
commit6f16135eb52b2460f2ff6a447def285878567077 (patch)
treebf119a72232a64d68788bef0bd02decec50773f4 /test/utils.rb
parent36dc23f65026e4374851aae511b0ff3a39143dfe (diff)
downloadruby-openssl-6f16135eb52b2460f2ff6a447def285878567077.tar.gz
test/utils: have start_server yield only the port number
The block passed to start_server is invoked with two arguments, the running thread object for the server and the automatically-selected port number. The first argument is completely useless and actually is not used anywhere.
Diffstat (limited to 'test/utils.rb')
-rw-r--r--test/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/utils.rb b/test/utils.rb
index 0bcdf3f7..8e5fc55b 100644
--- a/test/utils.rb
+++ b/test/utils.rb
@@ -252,7 +252,7 @@ class OpenSSL::SSLTestCase < OpenSSL::TestCase
client = Thread.new do
begin
- block.call(server, port.to_i)
+ block.call(port)
ensure
stop_pipe_w.close
end