aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-05-16 13:38:09 -0700
committerGravatar GitHub <noreply@github.com>2017-05-16 13:38:09 -0700
commit82713635e15011beea6b592887f03c512969c7e8 (patch)
tree1a5e102e739c510551e195ad3da7114c4a59ffc8 /test
parent081c442462a21f326ff08f47ff1cd9a17c6746ea (diff)
parentf09957bd04a8bb54d220e8ecebb393931624a48b (diff)
Merge pull request #11135 from ctiller/bugz
Fix some job runner bugs, save some initialization passes for port selection
Diffstat (limited to 'test')
-rw-r--r--test/core/util/port.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/core/util/port.c b/test/core/util/port.c
index da1ed4e052..271ff226a7 100644
--- a/test/core/util/port.c
+++ b/test/core/util/port.c
@@ -77,9 +77,11 @@ static int free_chosen_port(int port) {
static void free_chosen_ports(void) {
size_t i;
+ grpc_init();
for (i = 0; i < num_chosen_ports; i++) {
grpc_free_port_using_server(chosen_ports[i]);
}
+ grpc_shutdown();
gpr_free(chosen_ports);
}