Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: cleaning up unneeded helpers. #16334

Merged
merged 2 commits into from
May 6, 2021
Merged

Conversation

alyssawilk
Copy link
Contributor

Risk Level: n/a (test only)
Testing: n/a
Docs Changes: n/a
Release Notes: n/a

Copy link
Contributor

@jmarantz jmarantz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great; just a typing/comment nit

@@ -362,8 +362,8 @@ class HdsIntegrationTest : public Grpc::VersionedGrpcClientIntegrationParamTest,
FakeStreamPtr hds_stream_;
FakeUpstream* hds_upstream_{};
uint32_t hds_requests_{};
FakeUpstreamPtr host_upstream_{};
FakeUpstreamPtr host2_upstream_{};
FakeUpstream* host_upstream_{};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add line comment on ownership

// Creates a fake upstream bound to INADDR_ANY and there is no specified port.
std::unique_ptr<FakeUpstream> createFakeUpstream(FakeHttpConnection::Type type) {
// Add a fake upstream bound to INADDR_ANY and there is no specified port.
std::unique_ptr<FakeUpstream>& addFakeUpstream(FakeHttpConnection::Type type) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe return FakeUpstream* or OptRef<FakeUpstream>

Signed-off-by: Alyssa Wilk <[email protected]>
@yanavlasov yanavlasov merged commit 0cdd980 into envoyproxy:main May 6, 2021
@alyssawilk alyssawilk deleted the fake branch August 18, 2021 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants