xds_cluster_e2e_test: fix test flake from #32571 (#32623)

pull/32629/head
Mark D. Roth 2 years ago committed by GitHub
parent acec3a6975
commit a67a46e7a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      test/cpp/end2end/xds/xds_cluster_end2end_test.cc

@ -496,7 +496,13 @@ TEST_P(EdsTest, LocalityBecomesEmptyWithDeactivatedChildStateUpdate) {
if (!result.status.ok()) {
EXPECT_EQ(result.status.error_code(), StatusCode::UNAVAILABLE);
EXPECT_THAT(result.status.error_message(),
::testing::MatchesRegex(kErrorMessage));
::testing::MatchesRegex(absl::StrCat(
// The error message we see here depends on whether
// the client sees the EDS update before or after it
// sees the backend come back up.
MakeConnectionFailureRegex(
"connections to all backends failing; last error: "),
"|", kErrorMessage)));
}
});
}

Loading…
Cancel
Save