From 8c523e5bcf350a14d807bdbb58194329b3b15ff4 Mon Sep 17 00:00:00 2001 From: "wangbaiping(wbpcode)" Date: Wed, 11 Dec 2024 10:36:01 +0000 Subject: [PATCH] fix thrift ratelimit Signed-off-by: wangbaiping(wbpcode) --- .../thrift_proxy/filters/ratelimit/ratelimit_test.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/extensions/filters/network/thrift_proxy/filters/ratelimit/ratelimit_test.cc b/test/extensions/filters/network/thrift_proxy/filters/ratelimit/ratelimit_test.cc index 81c567dacf0d..93f57d6e40a1 100644 --- a/test/extensions/filters/network/thrift_proxy/filters/ratelimit/ratelimit_test.cc +++ b/test/extensions/filters/network/thrift_proxy/filters/ratelimit/ratelimit_test.cc @@ -90,7 +90,7 @@ class ThriftRateLimitFilterTest : public testing::Test { NiceMock runtime_; NiceMock cm_; NiceMock route_rate_limit_; - std::vector descriptor_{{{{"descriptor_key", "descriptor_value"}}}}; + std::vector descriptor_{{{{{"descriptor_key", "descriptor_value"}}}}}; NiceMock local_info_; }; @@ -211,7 +211,7 @@ TEST_F(ThriftRateLimitFilterTest, OkResponse) { EXPECT_CALL(*client_, limit(_, "foo", testing::ContainerEq(std::vector{ - {{{"descriptor_key", "descriptor_value"}}}}), + {{{{"descriptor_key", "descriptor_value"}}}}}), _, _, 0)) .WillOnce( WithArgs<0>(Invoke([&](Filters::Common::RateLimit::RequestCallbacks& callbacks) -> void { @@ -242,7 +242,7 @@ TEST_F(ThriftRateLimitFilterTest, ImmediateOkResponse) { EXPECT_CALL(*client_, limit(_, "foo", testing::ContainerEq(std::vector{ - {{{"descriptor_key", "descriptor_value"}}}}), + {{{{"descriptor_key", "descriptor_value"}}}}}), _, _, 0)) .WillOnce( WithArgs<0>(Invoke([&](Filters::Common::RateLimit::RequestCallbacks& callbacks) -> void { @@ -266,7 +266,7 @@ TEST_F(ThriftRateLimitFilterTest, ImmediateErrorResponse) { EXPECT_CALL(*client_, limit(_, "foo", testing::ContainerEq(std::vector{ - {{{"descriptor_key", "descriptor_value"}}}}), + {{{{"descriptor_key", "descriptor_value"}}}}}), _, _, 0)) .WillOnce( WithArgs<0>(Invoke([&](Filters::Common::RateLimit::RequestCallbacks& callbacks) -> void {