diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-08-13 22:53:45 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-08-24 21:01:09 +0900 |
commit | 6f16135eb52b2460f2ff6a447def285878567077 (patch) | |
tree | bf119a72232a64d68788bef0bd02decec50773f4 /test/utils.rb | |
parent | 36dc23f65026e4374851aae511b0ff3a39143dfe (diff) | |
download | ruby-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.rb | 2 |
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 |