diff options
author | Craig Tiller <ctiller@google.com> | 2017-07-21 13:14:14 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-07-21 13:14:14 -0700 |
commit | 9a8c3f398aed287decf6f8966a46478624f7c4f1 (patch) | |
tree | 24a432d49022cbaf7b901c9de3020d2409f1d690 /test/core/util | |
parent | 9d0463b3f34f46f7527589480f55a8cdb21d42e7 (diff) |
Explicitly call out round up vs round down
Diffstat (limited to 'test/core/util')
-rw-r--r-- | test/core/util/test_tcp_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/util/test_tcp_server.c b/test/core/util/test_tcp_server.c index ce05833aa9..611ecb330c 100644 --- a/test/core/util/test_tcp_server.c +++ b/test/core/util/test_tcp_server.c @@ -80,8 +80,8 @@ void test_tcp_server_start(test_tcp_server *server, int port) { void test_tcp_server_poll(test_tcp_server *server, int seconds) { grpc_pollset_worker *worker = NULL; grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; - grpc_millis deadline = - grpc_timespec_to_millis(grpc_timeout_seconds_to_deadline(seconds)); + grpc_millis deadline = grpc_timespec_to_millis_round_up( + grpc_timeout_seconds_to_deadline(seconds)); gpr_mu_lock(server->mu); GRPC_LOG_IF_ERROR( "pollset_work", |