Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
be7b82ba
Commit
be7b82ba
authored
7 years ago
by
ncteisen
Browse files
Options
Downloads
Patches
Plain Diff
Add repro for coalescing bug
parent
9bee3086
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/cpp/end2end/end2end_test.cc
+23
-0
23 additions, 0 deletions
test/cpp/end2end/end2end_test.cc
with
23 additions
and
0 deletions
test/cpp/end2end/end2end_test.cc
+
23
−
0
View file @
be7b82ba
...
@@ -772,6 +772,29 @@ TEST_P(End2endTest, ResponseStreamWithCoalescingApi) {
...
@@ -772,6 +772,29 @@ TEST_P(End2endTest, ResponseStreamWithCoalescingApi) {
EXPECT_TRUE
(
s
.
ok
());
EXPECT_TRUE
(
s
.
ok
());
}
}
// This was added to prevent regression from issue:
// https://github.com/grpc/grpc/issues/11546
TEST_P
(
End2endTest
,
ResponseStreamWithEverythingCoalesced
)
{
ResetStub
();
EchoRequest
request
;
EchoResponse
response
;
ClientContext
context
;
request
.
set_message
(
"hello"
);
context
.
AddMetadata
(
kServerUseCoalescingApi
,
"1"
);
// We will only send one message, forcing everything (init metadata, message,
// trailing) to be coalesced together.
context
.
AddMetadata
(
kServerResponseStreamsToSend
,
"1"
);
auto
stream
=
stub_
->
ResponseStream
(
&
context
,
request
);
EXPECT_TRUE
(
stream
->
Read
(
&
response
));
EXPECT_EQ
(
response
.
message
(),
request
.
message
()
+
"0"
);
EXPECT_FALSE
(
stream
->
Read
(
&
response
));
Status
s
=
stream
->
Finish
();
EXPECT_TRUE
(
s
.
ok
());
}
TEST_P
(
End2endTest
,
BidiStream
)
{
TEST_P
(
End2endTest
,
BidiStream
)
{
ResetStub
();
ResetStub
();
EchoRequest
request
;
EchoRequest
request
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment