Merge pull request #17951 from ncteisen/empty-binary-metadata

Add Empty Binary Metadata Test
pull/17958/head
Noah Eisen 6 years ago committed by GitHub
commit d97fd19eef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      test/cpp/end2end/end2end_test.cc

@ -758,6 +758,18 @@ TEST_P(End2endTest, MultipleRpcs) {
}
}
TEST_P(End2endTest, EmptyBinaryMetadata) {
ResetStub();
EchoRequest request;
EchoResponse response;
request.set_message("Hello hello hello hello");
ClientContext context;
context.AddMetadata("custom-bin", "");
Status s = stub_->Echo(&context, request, &response);
EXPECT_EQ(response.message(), request.message());
EXPECT_TRUE(s.ok());
}
TEST_P(End2endTest, ReconnectChannel) {
if (GetParam().inproc) {
return;

Loading…
Cancel
Save