From c8415e904333c99a2fcd4f8d070942b6923d44ed Mon Sep 17 00:00:00 2001
From: zhongtao <zhongtao17@huawei.com>
Date: Mon, 13 Nov 2023 08:52:42 +0000
Subject: [PATCH 10/14] !2245 fix utils_verify_ut failure when remote grpc
 function is turned off * fix utils_verify_ut failure when remote grpc
 function is turned off

---
 test/cutils/utils_verify/utils_verify_ut.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/cutils/utils_verify/utils_verify_ut.cc b/test/cutils/utils_verify/utils_verify_ut.cc
index 79670ec1..f2ff57c7 100644
--- a/test/cutils/utils_verify/utils_verify_ut.cc
+++ b/test/cutils/utils_verify/utils_verify_ut.cc
@@ -70,12 +70,14 @@ TEST(utils_verify, test_util_validate_socket)
     ASSERT_EQ(util_validate_socket("unix://./isulad"), false);
     ASSERT_EQ(util_validate_socket("unix://isulad"), false);
 
+#ifdef ENABLE_GRPC_REMOTE_CONNECT
     ASSERT_EQ(util_validate_socket("tcp://localhost:2375"), true);
     ASSERT_EQ(util_validate_socket("tcp://127.0.0.1:2375"), true);
 
     ASSERT_EQ(util_validate_socket("tcp://"), false);
     ASSERT_EQ(util_validate_socket("tcp://127.0.0.1"), false);
     ASSERT_EQ(util_validate_socket("tcp://127.0.0.1,2375"), false);
+#endif
 }
 
 TEST(utils_verify, test_util_valid_device_mode)
-- 
2.42.0

