|
|
@ -42,7 +42,7 @@ static void test_succeeds(grpc_core::ResolverFactory* factory, |
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
absl::StatusOr<grpc_core::URI> uri = grpc_core::URI::Parse(string); |
|
|
|
absl::StatusOr<grpc_core::URI> uri = grpc_core::URI::Parse(string); |
|
|
|
if (!uri.ok()) { |
|
|
|
if (!uri.ok()) { |
|
|
|
gpr_log(GPR_ERROR, uri.status().ToString().c_str()); |
|
|
|
gpr_log(GPR_ERROR, "%s", uri.status().ToString().c_str()); |
|
|
|
GPR_ASSERT(uri.ok()); |
|
|
|
GPR_ASSERT(uri.ok()); |
|
|
|
} |
|
|
|
} |
|
|
|
grpc_core::ResolverArgs args; |
|
|
|
grpc_core::ResolverArgs args; |
|
|
@ -61,7 +61,7 @@ static void test_fails(grpc_core::ResolverFactory* factory, |
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
absl::StatusOr<grpc_core::URI> uri = grpc_core::URI::Parse(string); |
|
|
|
absl::StatusOr<grpc_core::URI> uri = grpc_core::URI::Parse(string); |
|
|
|
if (!uri.ok()) { |
|
|
|
if (!uri.ok()) { |
|
|
|
gpr_log(GPR_ERROR, uri.status().ToString().c_str()); |
|
|
|
gpr_log(GPR_ERROR, "%s", uri.status().ToString().c_str()); |
|
|
|
GPR_ASSERT(uri.ok()); |
|
|
|
GPR_ASSERT(uri.ok()); |
|
|
|
} |
|
|
|
} |
|
|
|
grpc_core::ResolverArgs args; |
|
|
|
grpc_core::ResolverArgs args; |
|
|
|