diff --git a/test/extensions/geoip_providers/maxmind/geoip_provider_test.cc b/test/extensions/geoip_providers/maxmind/geoip_provider_test.cc
index 14bb46184314..29ad29f045e3 100644
--- a/test/extensions/geoip_providers/maxmind/geoip_provider_test.cc
+++ b/test/extensions/geoip_providers/maxmind/geoip_provider_test.cc
@@ -157,13 +157,13 @@ class GeoipProviderTestBase {
   Api::ApiPtr api_;
   NiceMock<Server::Configuration::MockServerFactoryContext> server_factory_context_;
   NiceMock<Server::Configuration::MockFactoryContext> context_;
-  DriverSharedPtr provider_;
   MaxmindProviderFactory* provider_factory_;
   Event::SimulatedTimeSystem time_system_;
   absl::flat_hash_map<std::string, std::string> captured_lookup_response_;
   absl::Mutex mutex_;
   std::vector<Filesystem::Watcher::OnChangedCb> on_changed_cbs_ ABSL_GUARDED_BY(mutex_);
   absl::optional<ConditionalInitializer> cb_added_nullopt = absl::nullopt;
+  DriverSharedPtr provider_;
 };
 
 class GeoipProviderTest : public testing::Test, public GeoipProviderTestBase {};