From 6f16135eb52b2460f2ff6a447def285878567077 Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Sun, 13 Aug 2017 22:53:45 +0900 Subject: 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. --- test/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/utils.rb') 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 -- cgit v1.2.3