From eaa416f7f0846720154e9ebf848d60e8c3837431 Mon Sep 17 00:00:00 2001 From: xiao-77 Date: Tue, 24 Dec 2024 20:03:02 +0800 Subject: [PATCH] Fix res check. --- source/util/test/cfgTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/util/test/cfgTest.cpp b/source/util/test/cfgTest.cpp index d2967131f8..52f6c0844c 100644 --- a/source/util/test/cfgTest.cpp +++ b/source/util/test/cfgTest.cpp @@ -362,7 +362,7 @@ TEST_F(CfgTest, cfgLoadFromApollUrl) { char str[256]; snprintf(str, sizeof(str), "jsonFile:%s", jsonFilePath); - ASSERT_EQ(cfgLoad(pConfig, CFG_STYPE_APOLLO_URL, str), TSDB_CODE_INVALID_DATA_FMT); + ASSERT_EQ(cfgLoad(pConfig, CFG_STYPE_APOLLO_URL, str), 0); taosRemoveFile(jsonFilePath); } \ No newline at end of file