diff options
author | Robbie Shade <rjshade@google.com> | 2017-01-17 09:14:29 -0500 |
---|---|---|
committer | Robbie Shade <rjshade@google.com> | 2017-01-31 15:40:20 -0500 |
commit | ca7effcdff69baba8e52e4c83fe808491df60f36 (patch) | |
tree | 7e04f13f655f44c5930233381b615e1d54e5386e /test/core/fling | |
parent | c88834ba996084db5f530706a09892bdd900e7dc (diff) |
Replace timeout/scaling macros with functions.
Diffstat (limited to 'test/core/fling')
-rw-r--r-- | test/core/fling/client.c | 4 | ||||
-rw-r--r-- | test/core/fling/server.c | 2 |
2 files changed, 3 insertions, 3 deletions
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; |