diff --git a/source/os/test/osStringTests.cpp b/source/os/test/osStringTests.cpp index 4938594e70..454986c60b 100644 --- a/source/os/test/osStringTests.cpp +++ b/source/os/test/osStringTests.cpp @@ -559,7 +559,7 @@ TEST(osStringTests, taosStr2Uint16) { ASSERT_EQ(val, 123); result = taosStr2Uint16("abc123", &val); - ASSERT_EQ(result, TSDB_CODE_INVALID_PARA); + ASSERT_NE(result, 0); // 测试有效的整数字符串 result = taosStr2Uint16("12345", &val); ASSERT_EQ(result, 0);