From 496d509e9202379f34dd08d8ef799ec97260ba1b Mon Sep 17 00:00:00 2001 From: Kateryna Nezdolii Date: Fri, 13 Sep 2024 12:53:18 +0200 Subject: [PATCH] [ci+geoip] Fix release check flake Signed-off-by: Kateryna Nezdolii --- test/extensions/geoip_providers/maxmind/geoip_provider_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/extensions/geoip_providers/maxmind/geoip_provider_test.cc b/test/extensions/geoip_providers/maxmind/geoip_provider_test.cc index 6d3e8961d82a..14bb46184314 100644 --- a/test/extensions/geoip_providers/maxmind/geoip_provider_test.cc +++ b/test/extensions/geoip_providers/maxmind/geoip_provider_test.cc @@ -94,7 +94,6 @@ class GeoipProviderTestBase { Registry::FactoryRegistry::getFactory( "envoy.geoip_providers.maxmind")); ASSERT(provider_factory_); - on_changed_cbs_.reserve(1); } ~GeoipProviderTestBase() { @@ -116,6 +115,7 @@ class GeoipProviderTestBase { Filesystem::Watcher::OnChangedCb cb) { { absl::WriterMutexLock lock(&mutex_); + on_changed_cbs_.reserve(1); on_changed_cbs_.emplace_back(std::move(cb)); } if (conditional.has_value()) {