From ca7effcdff69baba8e52e4c83fe808491df60f36 Mon Sep 17 00:00:00 2001 From: Robbie Shade Date: Tue, 17 Jan 2017 09:14:29 -0500 Subject: Replace timeout/scaling macros with functions. --- test/core/fling/client.c | 4 ++-- test/core/fling/server.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test/core/fling') diff --git a/test/core/fling/client.c b/test/core/fling/client.c index c4de949b3a..85bab6d431 100644 --- a/test/core/fling/client.c +++ b/test/core/fling/client.c @@ -214,9 +214,9 @@ int main(int argc, char **argv) { sc.init(); - gpr_timespec end_warmup = GRPC_TIMEOUT_SECONDS_TO_DEADLINE(warmup_seconds); + gpr_timespec end_warmup = grpc_timeout_seconds_to_deadline(warmup_seconds); gpr_timespec end_profiling = - GRPC_TIMEOUT_SECONDS_TO_DEADLINE(warmup_seconds + benchmark_seconds); + grpc_timeout_seconds_to_deadline(warmup_seconds + benchmark_seconds); while (gpr_time_cmp(gpr_now(end_warmup.clock_type), end_warmup) < 0) { sc.do_one_step(); diff --git a/test/core/fling/server.c b/test/core/fling/server.c index 11742cedb6..7ea54b1167 100644 --- a/test/core/fling/server.c +++ b/test/core/fling/server.c @@ -244,7 +244,7 @@ int main(int argc, char **argv) { gpr_log(GPR_INFO, "Shutting down due to SIGINT"); grpc_server_shutdown_and_notify(server, cq, tag(1000)); GPR_ASSERT(grpc_completion_queue_pluck( - cq, tag(1000), GRPC_TIMEOUT_SECONDS_TO_DEADLINE(5), NULL) + cq, tag(1000), grpc_timeout_seconds_to_deadline(5), NULL) .type == GRPC_OP_COMPLETE); grpc_completion_queue_shutdown(cq); shutdown_started = 1; -- cgit v1.2.3