diff options
author | kpayson64 <kpayson@google.com> | 2016-07-11 23:46:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-11 23:46:04 -0700 |
commit | 1af18aef2b788e2b349baabbb63d3d2178e908ad (patch) | |
tree | 13ca6da8d8e3cceb07172b7dda1526fba5b90148 /src | |
parent | a09219c3b6628c47c49d7001f47aab5ec2da7d2d (diff) | |
parent | 16e7f5826b3ad4b02e93953bc90203a2e0f9f016 (diff) |
Merge pull request #7315 from kpayson64/fix_exit_test
Updated exit_test for new grpc.Server API
Diffstat (limited to 'src')
-rw-r--r-- | src/python/grpcio_tests/tests/unit/_exit_scenarios.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/python/grpcio_tests/tests/unit/_exit_scenarios.py b/src/python/grpcio_tests/tests/unit/_exit_scenarios.py index 24a2faef85..b33802bf57 100644 --- a/src/python/grpcio_tests/tests/unit/_exit_scenarios.py +++ b/src/python/grpcio_tests/tests/unit/_exit_scenarios.py @@ -184,11 +184,11 @@ if __name__ == '__main__': args = parser.parse_args() if args.scenario == UNSTARTED_SERVER: - server = grpc.server((), DaemonPool()) + server = grpc.server(DaemonPool()) if args.wait_for_interrupt: time.sleep(WAIT_TIME) elif args.scenario == RUNNING_SERVER: - server = grpc.server((), DaemonPool()) + server = grpc.server(DaemonPool()) port = server.add_insecure_port('[::]:0') server.start() if args.wait_for_interrupt: @@ -203,7 +203,7 @@ if __name__ == '__main__': if args.wait_for_interrupt: time.sleep(WAIT_TIME) elif args.scenario == POLL_CONNECTIVITY: - server = grpc.server((), DaemonPool()) + server = grpc.server(DaemonPool()) port = server.add_insecure_port('[::]:0') server.start() channel = grpc.insecure_channel('localhost:%d' % port) @@ -217,7 +217,7 @@ if __name__ == '__main__': else: handler = GenericHandler() - server = grpc.server((), DaemonPool()) + server = grpc.server(DaemonPool()) port = server.add_insecure_port('[::]:0') server.add_generic_rpc_handlers((handler,)) server.start() |