|
|
|
@ -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); |
|
|
|
|