From 5438a00d3882bbcdf71f7868c70e1224344fa511 Mon Sep 17 00:00:00 2001 From: ZhenLian Date: Sat, 15 Aug 2020 17:04:24 -0700 Subject: [PATCH] fix MSAN error --- test/cpp/common/alts_util_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/cpp/common/alts_util_test.cc b/test/cpp/common/alts_util_test.cc index a32d09e276d..67c24b2818c 100644 --- a/test/cpp/common/alts_util_test.cc +++ b/test/cpp/common/alts_util_test.cc @@ -26,6 +26,7 @@ #include "src/core/tsi/alts/handshaker/alts_tsi_handshaker.h" #include "src/cpp/common/secure_auth_context.h" #include "src/proto/grpc/gcp/altscontext.upb.h" +#include "test/core/util/test_config.h" #include "test/cpp/util/string_ref_helper.h" namespace grpc { @@ -211,6 +212,7 @@ TEST(AltsUtilTest, AltsClientAuthzCheck) { } // namespace grpc int main(int argc, char** argv) { + grpc::testing::TestEnvironment env(argc, argv); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }