diff options
author | Craig Tiller <ctiller@google.com> | 2015-08-25 07:11:35 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-08-25 07:11:35 -0700 |
commit | dc31ef38d2530ed814d18150755710545293a8ed (patch) | |
tree | 4613e3f010236ed238a4209dde3243a3105763ac /test/cpp/end2end | |
parent | 5d4d1ee34ecd0669c63c675927e4364fcfc67fb9 (diff) |
Loosen test requirements to better fit spec
Diffstat (limited to 'test/cpp/end2end')
-rw-r--r-- | test/cpp/end2end/generic_end2end_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/end2end/generic_end2end_test.cc b/test/cpp/end2end/generic_end2end_test.cc index de7eab8dc2..809eef058c 100644 --- a/test/cpp/end2end/generic_end2end_test.cc +++ b/test/cpp/end2end/generic_end2end_test.cc @@ -160,7 +160,7 @@ class GenericEnd2endTest : public ::testing::Test { srv_cq_.get(), tag(4)); verify_ok(srv_cq_.get(), 4, true); - EXPECT_EQ(server_host_, srv_ctx.host()); + EXPECT_EQ(server_host_, srv_ctx.host().substr(0, server_host_.length())); EXPECT_EQ(kMethodName, srv_ctx.method()); ByteBuffer recv_buffer; stream.Read(&recv_buffer, tag(5)); @@ -233,7 +233,7 @@ TEST_F(GenericEnd2endTest, SimpleBidiStreaming) { srv_cq_.get(), tag(2)); verify_ok(srv_cq_.get(), 2, true); - EXPECT_EQ(server_host_, srv_ctx.host()); + EXPECT_EQ(server_host_, srv_ctx.host().substr(0, server_host_.length())); EXPECT_EQ(kMethodName, srv_ctx.method()); std::unique_ptr<ByteBuffer> send_buffer = |