Merge pull request #26 from dgquintas/resolve_test

fixes for resolve address
pull/6897/head
Craig Tiller 9 years ago
commit 480c4c600b
  1. 4
      src/core/lib/iomgr/resolve_address_posix.c
  2. 2
      test/core/iomgr/resolve_address_test.c

@ -173,7 +173,9 @@ static void do_request_thread(grpc_exec_ctx *exec_ctx, void *rp,
}
void grpc_resolved_addresses_destroy(grpc_resolved_addresses *addrs) {
gpr_free(addrs->addrs);
if (addrs != NULL) {
gpr_free(addrs->addrs);
}
gpr_free(addrs);
}

@ -62,7 +62,7 @@ static void must_succeed(grpc_exec_ctx *exec_ctx, void *argsp,
args_struct *args = argsp;
GPR_ASSERT(err == GRPC_ERROR_NONE);
GPR_ASSERT(args->addrs != NULL);
GPR_ASSERT(args->addrs->naddrs > 1);
GPR_ASSERT(args->addrs->naddrs > 0);
gpr_event_set(&args->ev, (void *)1);
}

Loading…
Cancel
Save