Roll-forward: Change server_finishes_request test to return OK status

pull/23081/head
Vijay Pai 5 years ago
parent 84cf666014
commit 6db7c62a13
  1. 4
      test/core/end2end/tests/server_finishes_request.cc

@ -151,7 +151,7 @@ static void simple_request_body(grpc_end2end_test_config /*config*/,
op++;
op->op = GRPC_OP_SEND_STATUS_FROM_SERVER;
op->data.send_status_from_server.trailing_metadata_count = 0;
op->data.send_status_from_server.status = GRPC_STATUS_UNIMPLEMENTED;
op->data.send_status_from_server.status = GRPC_STATUS_OK;
grpc_slice status_details = grpc_slice_from_static_string("xyz");
op->data.send_status_from_server.status_details = &status_details;
op->flags = 0;
@ -170,7 +170,7 @@ static void simple_request_body(grpc_end2end_test_config /*config*/,
CQ_EXPECT_COMPLETION(cqv, tag(1), 1);
cq_verify(cqv);
GPR_ASSERT(status == GRPC_STATUS_UNIMPLEMENTED);
GPR_ASSERT(status == GRPC_STATUS_OK);
GPR_ASSERT(0 == grpc_slice_str_cmp(details, "xyz"));
GPR_ASSERT(0 == grpc_slice_str_cmp(call_details.method, "/foo"));
GPR_ASSERT(was_cancelled == 0);

Loading…
Cancel
Save