Skip to content

Commit

Permalink
Fix asan failure in fake_resolver_test.
Browse files Browse the repository at this point in the history
  • Loading branch information
markdroth committed Mar 2, 2018
1 parent c372f19 commit 6fc5aba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/core/client_channel/resolvers/fake_resolver_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ static void test_fake_resolver() {
grpc_timeout_milliseconds_to_deadline(100)) ==
nullptr);
// Clean up.
// Note: Need to explicitly unref the resolver and flush the exec_ctx
// to make sure that the final resolver callback (with error set to
// "Resolver Shutdown") is invoked before on_res_arg goes out of scope.
resolver.reset();
grpc_core::ExecCtx::Get()->Flush();
GRPC_COMBINER_UNREF(combiner, "test_fake_resolver");
}

Expand Down

0 comments on commit 6fc5aba

Please sign in to comment.