From b32cbbabae3cff1f870720d6be9e55234ef93d2e Mon Sep 17 00:00:00 2001 From: Jianfei Hu Date: Wed, 10 Jul 2019 17:26:26 +0000 Subject: [PATCH] add check in ads_integration_test.cc Signed-off-by: Jianfei Hu --- test/integration/ads_integration_test.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration/ads_integration_test.cc b/test/integration/ads_integration_test.cc index 3ef9f4df589e..3745513ee431 100644 --- a/test/integration/ads_integration_test.cc +++ b/test/integration/ads_integration_test.cc @@ -969,6 +969,9 @@ TEST_P(AdsIntegrationTest, ListenerDrainBeforeServerStart) { Config::TypeUrl::get().Listener, {buildListener("listener_0", "route_config_0")}, {buildListener("listener_0", "route_config_0")}, {}, "1"); test_server_->waitForGaugeGe("listener_manager.total_listeners_active", 1); + // Before server is started, even though listeners are added to active list + // we mark them as "warming" in config dump since they're not initialized yet. + EXPECT_EQ(getListenersConfigDump().dynamic_warming_listeners().size(), 1); // Remove listener. sendDiscoveryResponse(Config::TypeUrl::get().Listener, {}, {}, {}, "1");