Skip to content

Commit

Permalink
add another TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
markdroth committed Dec 12, 2024
1 parent 25fc5ff commit 513fecb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/cpp/end2end/xds/xds_end2end_test_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,13 @@ class XdsEnd2endTest : public ::testing::TestWithParam<XdsTestType>,
// xDS server, or until a timeout expires.

// Sends RPCs until get_state() returns a response.
// TODO(roth): Does this actually need to send RPCs, or can it just
// use a condition variable to wait? I suspect that we need to be
// sending RPCs for polling reasons, but that should go away when we
// finish the EventEngine migration. Once that's done, try changing
// this to not send RPCs.
// Also, consider refactoring to also support waiting for ACKs, since
// there are several use-cases where tests are doing that.
absl::optional<AdsServiceImpl::ResponseState> WaitForNack(
const grpc_core::DebugLocation& debug_location,
std::function<absl::optional<AdsServiceImpl::ResponseState>()> get_state,
Expand Down

0 comments on commit 513fecb

Please sign in to comment.