From 7710e739769f37773c532ab970a691d2e9e35724 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Tue, 10 Dec 2024 18:11:01 +0800 Subject: [PATCH] fix test case --- source/os/test/osStringTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);