Skip to content

coverage: more misc coverage#7042

Merged
mattklein123 merged 4 commits intomasterfrom
more_coverage
May 23, 2019
Merged

coverage: more misc coverage#7042
mattklein123 merged 4 commits intomasterfrom
more_coverage

Conversation

@mattklein123
Copy link
Copy Markdown
Member

Taking one for the team here.

Risk Level: Low
Testing: New tests
Docs Changes: N/A
Release Notes: N/A

Taking one for the team here.

Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Matt Klein <mklein@lyft.com>
@mattklein123 mattklein123 marked this pull request as ready for review May 22, 2019 21:01
EXPECT_EQ(trace.socket_buffered_trace().events(0).read().data().as_string(), "POST");
EXPECT_EQ(trace.socket_buffered_trace().events(1).write().data().as_string(), "HTTP/");
EXPECT_EQ(trace.socket_buffered_trace().events(0).write().data().as_string(), "POST");
EXPECT_EQ(trace.socket_buffered_trace().events(1).read().data().as_string(), "HTTP/");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It seems like you modified a previous test to do something different. TBH I'm not fully understanding the semantic difference. But I do wonder whether it might have made sense to keep the old function and add a new one. Was the old functionality of the RequestWithJsonBodyAsString test not needed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The difference is the tap filter is installed on the upstream connection vs. the downstream. This test was primarily testing a different output type, but now we cover two different things. I can bring back the old test but I'm not sure it adds much extra value.

Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Matt Klein <mklein@lyft.com>
@mattklein123
Copy link
Copy Markdown
Member Author

@jmarantz updated. LMK if this reads better.

Copy link
Copy Markdown
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.

Thanks -- I'll take your word that the old test had no value :)

@mattklein123 mattklein123 merged commit b111739 into master May 23, 2019
@mattklein123 mattklein123 deleted the more_coverage branch May 23, 2019 19:01
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.

2 participants