diff --git a/test/extensions/common/dynamic_forward_proxy/dns_cache_impl_test.cc b/test/extensions/common/dynamic_forward_proxy/dns_cache_impl_test.cc index c077eab954dc6..689e9deb9a688 100644 --- a/test/extensions/common/dynamic_forward_proxy/dns_cache_impl_test.cc +++ b/test/extensions/common/dynamic_forward_proxy/dns_cache_impl_test.cc @@ -1001,7 +1001,7 @@ TEST(UtilityTest, PrepareDnsRefreshStrategy) { TEST_F(DnsCacheImplTest, ResolveSuccessWithCaching) { auto* time_source = new NiceMock(); - dispatcher_.time_system_.reset(time_source); + context_.dispatcher_.time_system_.reset(time_source); // Configure the cache. MockKeyValueStoreFactory factory;