From e557dd8bb7263b4a3fc078efcdb1a293b0580b46 Mon Sep 17 00:00:00 2001 From: Richard Belleville Date: Wed, 23 Oct 2019 10:54:23 -0700 Subject: [PATCH] Kokoro is v4-only --- src/python/grpcio_tests/tests/unit/_metadata_flags_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/grpcio_tests/tests/unit/_metadata_flags_test.py b/src/python/grpcio_tests/tests/unit/_metadata_flags_test.py index 54fa7c2cfe1..5cded71d9b5 100644 --- a/src/python/grpcio_tests/tests/unit/_metadata_flags_test.py +++ b/src/python/grpcio_tests/tests/unit/_metadata_flags_test.py @@ -94,10 +94,10 @@ class _GenericHandler(grpc.GenericRpcHandler): def get_free_loopback_tcp_port(): - tcp = socket.socket(socket.AF_INET6) + tcp = socket.socket(socket.AF_INET) tcp.bind(('', 0)) address_tuple = tcp.getsockname() - return tcp, "[::1]:%s" % (address_tuple[1]) + return tcp, "localhost:%s" % (address_tuple[1]) def create_dummy_channel():