Skip to content

Commit

Permalink
add check in ads_integration_test.cc
Browse files Browse the repository at this point in the history
Signed-off-by: Jianfei Hu <jianfeih@google.com>
  • Loading branch information
Jianfei Hu committed Jul 10, 2019
1 parent e8c1669 commit b32cbba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/integration/ads_integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<envoy::api::v2::Listener>(Config::TypeUrl::get().Listener, {}, {}, {}, "1");
Expand Down

0 comments on commit b32cbba

Please sign in to comment.