Skip to content

Commit

Permalink
[xDS e2e tests] fix flake in metric test
Browse files Browse the repository at this point in the history
  • Loading branch information
markdroth committed Sep 6, 2024
1 parent e19b748 commit 57dad46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/cpp/end2end/xds/xds_core_end2end_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,10 @@ TEST_P(XdsMetricsTest, MetricValues) {
EdsResourceArgs args =
EdsResourceArgs({{"locality0", CreateEndpointsForBackends()}});
balancer_->ads_service()->SetEdsResource(BuildEdsResource(args));
CheckRpcSendOk(DEBUG_LOCATION);
// Use wait_for_ready and increase timeout, in case the client takes a
// little while to get connected.
CheckRpcSendOk(DEBUG_LOCATION, /*times=*/1,
RpcOptions().set_wait_for_ready(true).set_timeout_ms(15000));
stats_plugin_->TriggerCallbacks();
// Check client metrics.
EXPECT_THAT(stats_plugin_->GetInt64CallbackGaugeValue(
Expand Down

0 comments on commit 57dad46

Please sign in to comment.