aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/spec
diff options
context:
space:
mode:
authorGravatar Tim Emiola <temiola@google.com>2015-01-26 18:33:20 -0800
committerGravatar Tim Emiola <temiola@google.com>2015-01-26 18:44:59 -0800
commit61ddba35fe7f3f9e859cd3a41c9afa65a4b8132a (patch)
tree44f099987fa6b453752a0d74f02d0071942fbeac /src/ruby/spec
parentf875aa36982970144df62de996ed48a80b1d4c37 (diff)
Removed port_picker from server_spec.rb
Diffstat (limited to 'src/ruby/spec')
-rw-r--r--src/ruby/spec/server_spec.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ruby/spec/server_spec.rb b/src/ruby/spec/server_spec.rb
index 6e5bb523de..1550ba6566 100644
--- a/src/ruby/spec/server_spec.rb
+++ b/src/ruby/spec/server_spec.rb
@@ -28,7 +28,6 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
require 'grpc'
-require 'port_picker'
def load_test_certs
test_root = File.join(File.dirname(__FILE__), 'testdata')
@@ -205,10 +204,8 @@ describe Server do
end
def start_a_server
- port = find_unused_tcp_port
- host = "localhost:#{port}"
s = Server.new(@cq, nil)
- s.add_http2_port(host)
+ s.add_http2_port('0.0.0.0:0')
s.start
s
end