Skip to content

Commit

Permalink
fixup: compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneo committed Dec 4, 2023
1 parent 979013f commit adb9f47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/core/xds/xds_client_test_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ class XdsClientTestBase : public ::testing::Test {

int resource_value() const { return resource_->value; }

std::shared_ptr<const ResourceStruct> resource() const {
return resource_;
}

private:
std::shared_ptr<const ResourceStruct> resource_;
RefCountedPtr<XdsClient::ReadDelayHandle> read_delay_handle_;
Expand Down Expand Up @@ -297,7 +301,7 @@ class XdsClientTestBase : public ::testing::Test {
if (!resource_and_handle.has_value()) {
return nullptr;
}
return std::move(resource_and_handle->first);
return resource_and_handle->resource();
}

absl::optional<absl::Status> WaitForNextError(
Expand Down

0 comments on commit adb9f47

Please sign in to comment.