From 4a98535064319a9df3143d9c4b397f44fbbb56c5 Mon Sep 17 00:00:00 2001
From: liuxu <liuxu156@huawei.com>
Date: Mon, 3 Jun 2024 16:11:06 +0800
Subject: [PATCH 099/108] bugfix:cni network name UT

Signed-off-by: liuxu <liuxu156@huawei.com>
---
 test/cutils/utils_network/utils_network_ut.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/cutils/utils_network/utils_network_ut.cc b/test/cutils/utils_network/utils_network_ut.cc
index 33eb6eb5..68f6f011 100644
--- a/test/cutils/utils_network/utils_network_ut.cc
+++ b/test/cutils/utils_network/utils_network_ut.cc
@@ -344,8 +344,8 @@ TEST(utils_network, test_net_contain_ip)
 TEST(utils_network, test_validate_network_name)
 {
     ASSERT_EQ(util_validate_network_name(nullptr), false);
-    ASSERT_EQ(util_validate_network_name(std::string(128, 'a').c_str()), true);
-    ASSERT_EQ(util_validate_network_name(std::string(129, 'a').c_str()), false);
+    ASSERT_EQ(util_validate_network_name(std::string(255, 'a').c_str()), true);
+    ASSERT_EQ(util_validate_network_name(std::string(256, 'a').c_str()), false);
     ASSERT_EQ(util_validate_network_name(std::string(".abce").c_str()), false);
 }
 
-- 
2.25.1

