aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/http
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-07-21 13:14:14 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-07-21 13:14:14 -0700
commit9a8c3f398aed287decf6f8966a46478624f7c4f1 (patch)
tree24a432d49022cbaf7b901c9de3020d2409f1d690 /test/core/http
parent9d0463b3f34f46f7527589480f55a8cdb21d42e7 (diff)
Explicitly call out round up vs round down
Diffstat (limited to 'test/core/http')
-rw-r--r--test/core/http/httpcli_test.c3
-rw-r--r--test/core/http/httpscli_test.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/test/core/http/httpcli_test.c b/test/core/http/httpcli_test.c
index ea63cd1df8..3634932ef1 100644
--- a/test/core/http/httpcli_test.c
+++ b/test/core/http/httpcli_test.c
@@ -36,7 +36,8 @@ static gpr_mu *g_mu;
static grpc_polling_entity g_pops;
static grpc_millis n_seconds_time(int seconds) {
- return grpc_timespec_to_millis(grpc_timeout_seconds_to_deadline(seconds));
+ return grpc_timespec_to_millis_round_up(
+ grpc_timeout_seconds_to_deadline(seconds));
}
static void on_finish(grpc_exec_ctx *exec_ctx, void *arg, grpc_error *error) {
diff --git a/test/core/http/httpscli_test.c b/test/core/http/httpscli_test.c
index 6d575d683d..d03dcdf779 100644
--- a/test/core/http/httpscli_test.c
+++ b/test/core/http/httpscli_test.c
@@ -36,7 +36,8 @@ static gpr_mu *g_mu;
static grpc_polling_entity g_pops;
static grpc_millis n_seconds_time(int seconds) {
- return grpc_timespec_to_millis(grpc_timeout_seconds_to_deadline(seconds));
+ return grpc_timespec_to_millis_round_up(
+ grpc_timeout_seconds_to_deadline(seconds));
}
static void on_finish(grpc_exec_ctx *exec_ctx, void *arg, grpc_error *error) {