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