diff --git a/test/extensions/rate_limit_descriptors/expr/config_test.cc b/test/extensions/rate_limit_descriptors/expr/config_test.cc index b455fc29a9c9..225e02d2eb2e 100644 --- a/test/extensions/rate_limit_descriptors/expr/config_test.cc +++ b/test/extensions/rate_limit_descriptors/expr/config_test.cc @@ -32,7 +32,7 @@ class RateLimitPolicyEntryTest : public testing::Test { absl::Status creation_status; rate_limit_entry_ = std::make_unique(rate_limit, context_, creation_status); - THROW_IF_NOT_OK(creation_status); + THROW_IF_NOT_OK_REF(creation_status); } NiceMock context_; @@ -84,8 +84,9 @@ TEST_F(RateLimitPolicyEntryTest, ExpressionText) { Http::TestRequestHeaderMapImpl header{{"x-header-name", "test_value"}}; rate_limit_entry_->populateDescriptors(descriptors_, "service_cluster", header, stream_info_); - EXPECT_THAT(std::vector({{{{"my_descriptor_name", "test_value"}}}}), - testing::ContainerEq(descriptors_)); + EXPECT_THAT( + std::vector({{{{{"my_descriptor_name", "test_value"}}}}}), + testing::ContainerEq(descriptors_)); } TEST_F(RateLimitPolicyEntryTest, ExpressionTextMalformed) { @@ -143,7 +144,7 @@ TEST_F(RateLimitPolicyEntryTest, ExpressionParsed) { Http::TestRequestHeaderMapImpl header{{":method", "GET"}}; rate_limit_entry_->populateDescriptors(descriptors_, "service_cluster", header, stream_info_); - EXPECT_THAT(std::vector({{{{"my_descriptor_name", "true"}}}}), + EXPECT_THAT(std::vector({{{{{"my_descriptor_name", "true"}}}}}), testing::ContainerEq(descriptors_)); } @@ -211,7 +212,7 @@ TEST_F(RateLimitPolicyEntryTest, ExpressionTextErrorSkip) { setupTest(yaml); rate_limit_entry_->populateDescriptors(descriptors_, "service_cluster", header_, stream_info_); - EXPECT_THAT(std::vector({{{{"test_key", "a"}}}}), + EXPECT_THAT(std::vector({{{{{"test_key", "a"}}}}}), testing::ContainerEq(descriptors_)); } #endif