diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2016-03-25 22:13:04 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2016-03-25 22:13:04 -0700 |
commit | 94f908ae84ab6d280a41e09245925ecfa612dce8 (patch) | |
tree | feb623a1c696b6b4ec94af13482442fd3ea3dc74 /test/core | |
parent | 34fe47eb91f2418bbc10cc3c7ce04c9276babbd2 (diff) | |
parent | d9a2368e56ee87bc6ebabdf6dd429894d2643427 (diff) |
Merge pull request #5962 from nicolasnoble/windows-flake-are-not
Moving grpc_pick_unused_port_of_die before creating a deadline.
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/end2end/invalid_call_argument_test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/core/end2end/invalid_call_argument_test.c b/test/core/end2end/invalid_call_argument_test.c index ab90c4cf74..642b044ed8 100644 --- a/test/core/end2end/invalid_call_argument_test.c +++ b/test/core/end2end/invalid_call_argument_test.c @@ -63,7 +63,7 @@ struct test_state { static struct test_state g_state; static void prepare_test(int is_client) { - int port; + int port = grpc_pick_unused_port_or_die(); char *server_hostport; grpc_op *op; g_state.is_client = is_client; @@ -85,7 +85,6 @@ static void prepare_test(int is_client) { } else { g_state.server = grpc_server_create(NULL, NULL); grpc_server_register_completion_queue(g_state.server, g_state.cq, NULL); - port = grpc_pick_unused_port_or_die(); gpr_join_host_port(&server_hostport, "0.0.0.0", port); grpc_server_add_insecure_http2_port(g_state.server, server_hostport); grpc_server_start(g_state.server); |