Merge pull request #14582 from markdroth/fake_resolver_test_fix

Fix asan failure in fake_resolver_test.
pull/13580/head
Mark D. Roth 7 years ago committed by GitHub
commit aa7fa513c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      test/core/client_channel/resolvers/fake_resolver_test.cc

@ -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");
}

Loading…
Cancel
Save