diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-11-29 21:54:26 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-11-29 21:54:26 -0800 |
commit | 2a1bb7f0caf7eb9ab24219b3a9e246718aa84a6b (patch) | |
tree | 93b5271d00edde22649b41e4e63cde8aea4378fc /test | |
parent | 486130455f16d30b3c1f792bf302f0858b334d3d (diff) |
Fixes, and some test code
Diffstat (limited to 'test')
-rw-r--r-- | test/core/end2end/fixtures/h2_uchannel.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/core/end2end/fixtures/h2_uchannel.c b/test/core/end2end/fixtures/h2_uchannel.c index 0c062d798a..6123bf061e 100644 --- a/test/core/end2end/fixtures/h2_uchannel.c +++ b/test/core/end2end/fixtures/h2_uchannel.c @@ -163,6 +163,7 @@ static grpc_subchannel *subchannel_factory_create_subchannel( grpc_connector_unref(exec_ctx, &c->base); grpc_channel_args_destroy(final_args); *f->sniffed_subchannel = s; + GRPC_SUBCHANNEL_REF(s, "sniffed"); return s; } @@ -316,11 +317,15 @@ static void chttp2_init_server_micro_fullstack(grpc_end2end_test_fixture *f, } static void chttp2_tear_down_micro_fullstack(grpc_end2end_test_fixture *f) { + grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; micro_fullstack_fixture_data *ffd = f->fixture_data; grpc_channel_destroy(ffd->master_channel); - ffd->master_channel = NULL; + if (ffd->sniffed_subchannel) { + GRPC_SUBCHANNEL_UNREF(&exec_ctx, ffd->sniffed_subchannel, "sniffed"); + } gpr_free(ffd->localaddr); gpr_free(ffd); + grpc_exec_ctx_finish(&exec_ctx); } /* All test configurations */ |