From 4145db25e8ece11d77ee858bd1bd0f00bd329025 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Tue, 10 Dec 2024 18:53:42 +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 949094d2ba..36f5207346 100644 --- a/source/os/test/osStringTests.cpp +++ b/source/os/test/osStringTests.cpp @@ -220,7 +220,7 @@ TEST(osStringTests, osStr2int32) { ASSERT_EQ(result, TSDB_CODE_INVALID_PARA); result = taosStr2int32("123", NULL); - ASSERT_NE(result, TSDB_CODE_INVALID_PARA); + ASSERT_EQ(result, TSDB_CODE_INVALID_PARA); // 测试无效输入 result = taosStr2int32("abc", &val);