diff options
author | 2017-10-06 18:17:08 -0700 | |
---|---|---|
committer | 2017-10-06 18:17:08 -0700 | |
commit | 80297d7cd73b3d2101f23136527ece13d2bb55b9 (patch) | |
tree | a37ee60de7944be1c0ac7a3682039bd6001759b1 /test/core/iomgr/tcp_client_uv_test.c | |
parent | cd58b2dceac4e9caaf299fa9409d6f82e40d8428 (diff) |
uv changes for grpc_pollset_work
Diffstat (limited to 'test/core/iomgr/tcp_client_uv_test.c')
-rw-r--r-- | test/core/iomgr/tcp_client_uv_test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/core/iomgr/tcp_client_uv_test.c b/test/core/iomgr/tcp_client_uv_test.c index f94e589b8d..edfccbe867 100644 --- a/test/core/iomgr/tcp_client_uv_test.c +++ b/test/core/iomgr/tcp_client_uv_test.c @@ -119,7 +119,8 @@ void test_succeeds(void) { GPR_ASSERT(GRPC_LOG_IF_ERROR( "pollset_work", grpc_pollset_work(&exec_ctx, g_pollset, &worker, - grpc_timeout_seconds_to_deadline(5)))); + grpc_timespec_to_millis_round_up( + grpc_timeout_seconds_to_deadline(5))))); gpr_mu_unlock(g_mu); grpc_exec_ctx_flush(&exec_ctx); gpr_mu_lock(g_mu); @@ -162,7 +163,7 @@ void test_fails(void) { grpc_pollset_worker *worker = NULL; gpr_timespec now = gpr_now(GPR_CLOCK_MONOTONIC); grpc_millis polling_deadline = test_deadline(); - switch (grpc_timer_check(&exec_ctx, now, &polling_deadline)) { + switch (grpc_timer_check(&exec_ctx, &polling_deadline)) { case GRPC_TIMERS_FIRED: break; case GRPC_TIMERS_NOT_CHECKED: |