aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/memory_usage
diff options
context:
space:
mode:
authorGravatar Robbie Shade <rjshade@google.com>2017-01-17 13:22:11 -0500
committerGravatar Robbie Shade <rjshade@google.com>2017-01-17 13:22:11 -0500
commit886fb1245c97878725e0f82ffde0779e3ec8d394 (patch)
tree76dbb6d5e4ee2e82932d94d30de21a2b0e3e2fa2 /test/core/memory_usage
parentcc2e048e84eaa418cab393553594a3fefb891037 (diff)
Force client to wait for server to start
Diffstat (limited to 'test/core/memory_usage')
-rw-r--r--test/core/memory_usage/client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/core/memory_usage/client.c b/test/core/memory_usage/client.c
index 9fc122b4c3..f4432bf572 100644
--- a/test/core/memory_usage/client.c
+++ b/test/core/memory_usage/client.c
@@ -79,6 +79,7 @@ static void init_ping_pong_request(int call_idx) {
op = metadata_ops;
op->op = GRPC_OP_SEND_INITIAL_METADATA;
op->data.send_initial_metadata.count = 0;
+ op->flags = GRPC_INITIAL_METADATA_WAIT_FOR_READY;
op++;
op->op = GRPC_OP_RECV_INITIAL_METADATA;
op->data.recv_initial_metadata = &calls[call_idx].initial_metadata_recv;
@@ -133,6 +134,7 @@ static struct grpc_memory_counters send_snapshot_request(
op->op = GRPC_OP_SEND_INITIAL_METADATA;
op->data.send_initial_metadata.count = 0;
+ op->flags = GRPC_INITIAL_METADATA_WAIT_FOR_READY;
op++;
op->op = GRPC_OP_SEND_CLOSE_FROM_CLIENT;
op++;