[ios] Fix build (#30248)

* build fix

* Automated change: Fix sanity tests

* x

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
revert-30252-ARGUE
Craig Tiller 3 years ago committed by GitHub
parent 1076a7d447
commit fb67563c73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      test/core/iomgr/ios/CFStreamTests/CFStreamClientTests.mm

@ -103,13 +103,12 @@ static void must_fail(void* arg, grpc_error_handle error) {
/* connect to it */
GPR_ASSERT(getsockname(svr_fd, (struct sockaddr*)addr, (socklen_t*)&resolved_addr.len) == 0);
GRPC_CLOSURE_INIT(&done, must_succeed, nullptr, grpc_schedule_on_exec_ctx);
const grpc_channel_args* args = grpc_core::CoreConfiguration::Get()
.channel_args_preconditioning()
.PreconditionChannelArgs(nullptr)
.ToC();
grpc_tcp_client_connect(&done, &g_connecting, nullptr, args, &resolved_addr,
auto args = grpc_core::CoreConfiguration::Get()
.channel_args_preconditioning()
.PreconditionChannelArgs(nullptr)
.ToC();
grpc_tcp_client_connect(&done, &g_connecting, nullptr, args.get(), &resolved_addr,
grpc_core::Timestamp::InfFuture());
grpc_channel_args_destroy(args);
/* await the connection */
do {
@ -161,13 +160,12 @@ static void must_fail(void* arg, grpc_error_handle error) {
/* connect to a broken address */
GRPC_CLOSURE_INIT(&done, must_fail, nullptr, grpc_schedule_on_exec_ctx);
const grpc_channel_args* args = grpc_core::CoreConfiguration::Get()
.channel_args_preconditioning()
.PreconditionChannelArgs(nullptr)
.ToC();
grpc_tcp_client_connect(&done, &g_connecting, nullptr, args, &resolved_addr,
auto args = grpc_core::CoreConfiguration::Get()
.channel_args_preconditioning()
.PreconditionChannelArgs(nullptr)
.ToC();
grpc_tcp_client_connect(&done, &g_connecting, nullptr, args.get(), &resolved_addr,
grpc_core::Timestamp::InfFuture());
grpc_channel_args_destroy(args);
grpc_core::ExecCtx::Get()->Flush();

Loading…
Cancel
Save