From 7f05fe3f7133746576c14a785e5848387fabb46b Mon Sep 17 00:00:00 2001 From: Steven Jin Xuan Date: Tue, 5 Nov 2024 16:44:39 -0500 Subject: [PATCH] More extreme tests Signed-off-by: Steven Jin Xuan --- test/common/upstream/upstream_impl_test.cc | 4 ++-- .../clusters/logical_dns/logical_dns_cluster_test.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/common/upstream/upstream_impl_test.cc b/test/common/upstream/upstream_impl_test.cc index 758c3e27c80cc..a48830886f146 100644 --- a/test/common/upstream/upstream_impl_test.cc +++ b/test/common/upstream/upstream_impl_test.cc @@ -1566,8 +1566,8 @@ TEST_F(StrictDnsClusterImplTest, ExtremeJitter) { connect_timeout: 0.25s type: STRICT_DNS lb_policy: ROUND_ROBIN - dns_refresh_rate: 4s - dns_jitter: 1s + dns_refresh_rate: 1s + dns_jitter: 1000s respect_dns_ttl: true load_assignment: endpoints: diff --git a/test/extensions/clusters/logical_dns/logical_dns_cluster_test.cc b/test/extensions/clusters/logical_dns/logical_dns_cluster_test.cc index 6755843a9d51b..38fd4e95cac76 100644 --- a/test/extensions/clusters/logical_dns/logical_dns_cluster_test.cc +++ b/test/extensions/clusters/logical_dns/logical_dns_cluster_test.cc @@ -676,12 +676,12 @@ TEST_F(LogicalDnsClusterTest, ExtremeJitter) { const std::string jitter_yaml = R"EOF( name: name type: LOGICAL_DNS - dns_refresh_rate: 4s + dns_refresh_rate: 1s dns_failure_refresh_rate: base_interval: 7s max_interval: 10s connect_timeout: 0.25s - dns_jitter: 1s + dns_jitter: 1000s lb_policy: ROUND_ROBIN # Since the following expectResolve() requires Network::DnsLookupFamily::V4Only we need to set # dns_lookup_family to V4_ONLY explicitly for v2 .yaml config.