aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/util
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-08-06 08:41:31 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-08-06 08:41:31 -0700
commit4c06b820e0a6d402002970cb04458d3ec593a683 (patch)
tree58f9eccc347e921cf52a84b554816be25145862a /test/core/util
parent69f90e6382b64ee96b5b1a223bf834194698632d (diff)
Add a test of non-blocking API behavior
... also fix things that were broken :)
Diffstat (limited to 'test/core/util')
-rw-r--r--test/core/util/reconnect_server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/util/reconnect_server.c b/test/core/util/reconnect_server.c
index 2a2113338b..a06cb50b3a 100644
--- a/test/core/util/reconnect_server.c
+++ b/test/core/util/reconnect_server.c
@@ -134,7 +134,8 @@ void reconnect_server_poll(reconnect_server *server, int seconds) {
gpr_time_add(gpr_now(GPR_CLOCK_MONOTONIC),
gpr_time_from_seconds(seconds, GPR_TIMESPAN));
gpr_mu_lock(GRPC_POLLSET_MU(&server->pollset));
- grpc_pollset_work(&server->pollset, &worker, deadline);
+ grpc_pollset_work(&server->pollset, &worker, gpr_now(GPR_CLOCK_MONOTONIC),
+ deadline);
gpr_mu_unlock(GRPC_POLLSET_MU(&server->pollset));
}