Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: zirain <[email protected]>
  • Loading branch information
zirain committed Sep 21, 2024
1 parent 5363124 commit 09dab76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/common/router/router_ratelimit_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,10 @@ TEST_F(RateLimitPolicyEntryTest, MaskedRemoteAddressIpv4Default) {
rate_limit_entry_->populateDescriptors(descriptors_, "", header_, stream_info_);
rate_limit_entry_->populateLocalDescriptors(local_descriptors_, "", header_, stream_info_);
EXPECT_THAT(
std::vector<Envoy::RateLimit::Descriptor>({{{{"masked_remote_address", "10.0.0.1/32"}}}}),
std::vector<Envoy::RateLimit::Descriptor>({{{{"masked_remote_address", "10_0_0_1/32"}}}}),
testing::ContainerEq(descriptors_));
EXPECT_THAT(std::vector<Envoy::RateLimit::LocalDescriptor>(
{{{{"masked_remote_address", "10.0.0.1/32"}}}}),
{{{{"masked_remote_address", "10_0_0_1/32"}}}}),
testing::ContainerEq(local_descriptors_));
}

Expand All @@ -395,10 +395,10 @@ TEST_F(RateLimitPolicyEntryTest, MaskedRemoteAddressIpv4) {
rate_limit_entry_->populateDescriptors(descriptors_, "", header_, stream_info_);
rate_limit_entry_->populateLocalDescriptors(local_descriptors_, "", header_, stream_info_);
EXPECT_THAT(
std::vector<Envoy::RateLimit::Descriptor>({{{{"masked_remote_address", "10.0.0.0/16"}}}}),
std::vector<Envoy::RateLimit::Descriptor>({{{{"masked_remote_address", "10_0_0_0/16"}}}}),
testing::ContainerEq(descriptors_));
EXPECT_THAT(std::vector<Envoy::RateLimit::LocalDescriptor>(
{{{{"masked_remote_address", "10.0.0.0/16"}}}}),
{{{{"masked_remote_address", "10_0_0_0/16"}}}}),
testing::ContainerEq(local_descriptors_));
}

Expand Down

0 comments on commit 09dab76

Please sign in to comment.