aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/naming/utils/tcp_connect.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/cpp/naming/utils/tcp_connect.py')
-rwxr-xr-xtest/cpp/naming/utils/tcp_connect.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cpp/naming/utils/tcp_connect.py b/test/cpp/naming/utils/tcp_connect.py
index 5773c7cae8..f3ad5891fd 100755
--- a/test/cpp/naming/utils/tcp_connect.py
+++ b/test/cpp/naming/utils/tcp_connect.py
@@ -31,7 +31,8 @@ def main():
argp.add_argument('-t', '--timeout', default=1, type=int,
help='Force process exit after this number of seconds.')
args = argp.parse_args()
- socket.create_connection([args.server_host, args.server_port])
+ socket.create_connection([args.server_host, args.server_port],
+ timeout=args.timeout)
if __name__ == '__main__':
main()