Kokoro is v4-only

pull/20753/head
Richard Belleville 5 years ago
parent 4ad50b8d2b
commit e557dd8bb7
  1. 4
      src/python/grpcio_tests/tests/unit/_metadata_flags_test.py

@ -94,10 +94,10 @@ class _GenericHandler(grpc.GenericRpcHandler):
def get_free_loopback_tcp_port(): def get_free_loopback_tcp_port():
tcp = socket.socket(socket.AF_INET6) tcp = socket.socket(socket.AF_INET)
tcp.bind(('', 0)) tcp.bind(('', 0))
address_tuple = tcp.getsockname() address_tuple = tcp.getsockname()
return tcp, "[::1]:%s" % (address_tuple[1]) return tcp, "localhost:%s" % (address_tuple[1])
def create_dummy_channel(): def create_dummy_channel():

Loading…
Cancel
Save