aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/core/util/port_posix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/core/util/port_posix.c b/test/core/util/port_posix.c
index 715e458262..62d5e7df20 100644
--- a/test/core/util/port_posix.c
+++ b/test/core/util/port_posix.c
@@ -149,7 +149,7 @@ static void got_port_from_server(void *arg,
GPR_ASSERT(port > 1024);
gpr_mu_lock(GRPC_POLLSET_MU(&pr->pollset));
pr->port = port;
- grpc_pollset_kick(&pr->pollset);
+ grpc_pollset_kick(&pr->pollset, NULL);
gpr_mu_unlock(GRPC_POLLSET_MU(&pr->pollset));
}
@@ -174,7 +174,9 @@ static int pick_port_using_server(char *server) {
&pr);
gpr_mu_lock(GRPC_POLLSET_MU(&pr.pollset));
while (pr.port == -1) {
- grpc_pollset_work(&pr.pollset, GRPC_TIMEOUT_SECONDS_TO_DEADLINE(1));
+ grpc_pollset_worker worker;
+ grpc_pollset_work(&pr.pollset, &worker,
+ GRPC_TIMEOUT_SECONDS_TO_DEADLINE(1));
}
gpr_mu_unlock(GRPC_POLLSET_MU(&pr.pollset));