From 443c8aa8f1892627f0cbde2b2352fed19962518b Mon Sep 17 00:00:00 2001 From: Ashitha Santhosh Date: Tue, 15 Sep 2020 12:56:45 -0700 Subject: [PATCH] Create TestEnvironment to fix flaky test. --- test/core/security/evaluate_args_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/core/security/evaluate_args_test.cc b/test/core/security/evaluate_args_test.cc index 394344dd60e..d721259eddf 100644 --- a/test/core/security/evaluate_args_test.cc +++ b/test/core/security/evaluate_args_test.cc @@ -19,6 +19,7 @@ #include "src/core/lib/security/authorization/evaluate_args.h" #include "test/core/util/eval_args_mock_endpoint.h" +#include "test/core/util/test_config.h" namespace grpc_core { @@ -71,6 +72,7 @@ TEST_F(EvaluateArgsTest, TestEvaluateArgsPeerPort) { } // namespace grpc_core int main(int argc, char** argv) { + grpc::testing::TestEnvironment env(argc, argv); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }