aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/echo
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-01-15 10:16:35 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-01-15 10:16:35 -0800
commita2075b90d7dd479fedb565b1fe3c325389d4bfce (patch)
treeab8bb00b13f122b158475619144fdae32df9dade /test/core/echo
parentb876c68bcc7e9a6cd553bc687a4e696fe7eafa36 (diff)
Remove calls to grpc_call_accept from C core tests.
This call is deprecated.
Diffstat (limited to 'test/core/echo')
-rw-r--r--test/core/echo/server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/echo/server.c b/test/core/echo/server.c
index e70743af22..3cc5fd5909 100644
--- a/test/core/echo/server.c
+++ b/test/core/echo/server.c
@@ -124,7 +124,8 @@ int main(int argc, char **argv) {
case GRPC_SERVER_RPC_NEW:
if (ev->call != NULL) {
/* initial ops are already started in request_call */
- grpc_call_accept(ev->call, cq, s, GRPC_WRITE_BUFFER_HINT);
+ grpc_call_server_accept(ev->call, cq, s);
+ grpc_call_server_end_initial_metadata(ev->call, GRPC_WRITE_BUFFER_HINT);
GPR_ASSERT(grpc_call_start_read(ev->call, s) == GRPC_CALL_OK);
request_call();
} else {