aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/fling
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/fling')
-rw-r--r--test/core/fling/client.c21
-rw-r--r--test/core/fling/server.c4
2 files changed, 11 insertions, 14 deletions
diff --git a/test/core/fling/client.c b/test/core/fling/client.c
index a0e9d9a619..54c9274510 100644
--- a/test/core/fling/client.c
+++ b/test/core/fling/client.c
@@ -89,13 +89,11 @@ static void init_ping_pong_request(void) {
}
static void step_ping_pong_request(void) {
- grpc_call_error error;
- call = grpc_channel_create_call(channel, cq, "/Reflector/reflectUnary",
- "localhost",
- gpr_inf_future(GPR_CLOCK_REALTIME),
- NULL);
- error = grpc_call_start_batch(call, ops, op - ops, (void *)1, NULL);
- GPR_ASSERT(GRPC_CALL_OK == error);
+ call = grpc_channel_create_call(channel, NULL, GRPC_PROPAGATE_DEFAULTS, cq,
+ "/Reflector/reflectUnary", "localhost",
+ gpr_inf_future(GPR_CLOCK_REALTIME), NULL);
+ GPR_ASSERT(GRPC_CALL_OK ==
+ grpc_call_start_batch(call, ops, op - ops, (void *)1, NULL));
grpc_completion_queue_next(cq, gpr_inf_future(GPR_CLOCK_REALTIME), NULL);
grpc_call_destroy(call);
grpc_byte_buffer_destroy(response_payload_recv);
@@ -104,10 +102,9 @@ static void step_ping_pong_request(void) {
static void init_ping_pong_stream(void) {
grpc_call_error error;
- call = grpc_channel_create_call(channel, cq, "/Reflector/reflectStream",
- "localhost",
- gpr_inf_future(GPR_CLOCK_REALTIME),
- NULL);
+ call = grpc_channel_create_call(channel, NULL, GRPC_PROPAGATE_DEFAULTS, cq,
+ "/Reflector/reflectStream", "localhost",
+ gpr_inf_future(GPR_CLOCK_REALTIME), NULL);
stream_init_op.op = GRPC_OP_SEND_INITIAL_METADATA;
stream_init_op.data.send_initial_metadata.count = 0;
error = grpc_call_start_batch(call, &stream_init_op, 1, (void *)1, NULL);
@@ -189,7 +186,7 @@ int main(int argc, char **argv) {
return 1;
}
- channel = grpc_channel_create(target, NULL, NULL);
+ channel = grpc_insecure_channel_create(target, NULL, NULL);
cq = grpc_completion_queue_create(NULL);
the_buffer = grpc_raw_byte_buffer_create(&slice, payload_size);
histogram = gpr_histogram_create(0.01, 60e9);
diff --git a/test/core/fling/server.c b/test/core/fling/server.c
index 33a5e78251..2873e4af4b 100644
--- a/test/core/fling/server.c
+++ b/test/core/fling/server.c
@@ -216,13 +216,13 @@ int main(int argc, char **argv) {
grpc_ssl_pem_key_cert_pair pem_key_cert_pair = {test_server1_key,
test_server1_cert};
grpc_server_credentials *ssl_creds =
- grpc_ssl_server_credentials_create(NULL, &pem_key_cert_pair, 1);
+ grpc_ssl_server_credentials_create(NULL, &pem_key_cert_pair, 1, 0);
server = grpc_server_create(NULL, NULL);
GPR_ASSERT(grpc_server_add_secure_http2_port(server, addr, ssl_creds));
grpc_server_credentials_release(ssl_creds);
} else {
server = grpc_server_create(NULL, NULL);
- GPR_ASSERT(grpc_server_add_http2_port(server, addr));
+ GPR_ASSERT(grpc_server_add_insecure_http2_port(server, addr));
}
grpc_server_register_completion_queue(server, cq, NULL);
grpc_server_start(server);