diff --git a/src/executor/test/ConfigTest.cpp b/src/executor/test/ConfigTest.cpp index fcf1e1dd7a51a40ae5e43f8623ecf90d530ca120..9be63c525fbbf1575809c267927620fa8fa6ec9c 100644 --- a/src/executor/test/ConfigTest.cpp +++ b/src/executor/test/ConfigTest.cpp @@ -6,18 +6,17 @@ */ #include "base/Base.h" -#include "graph/test/TestEnv.h" #include "graph/test/TestBase.h" -#include "meta/test/TestUtils.h" +#include "graph/test/TestEnv.h" #include "meta/ClientBasedGflagsManager.h" +#include "meta/test/TestUtils.h" DECLARE_int32(load_data_interval_secs); -DECLARE_int32(load_config_interval_secs); namespace nebula { namespace graph { -class ConfigTest: public TestBase { +class ConfigTest : public TestBase { protected: void SetUp() override { TestBase::SetUp(); diff --git a/src/parser/test/ParserTest.cpp b/src/parser/test/ParserTest.cpp index 8e0e4f5e8c27fc8c5a22f7bb8b4c89b094c66fa9..c796ca447e1cc6f68134ff506b60c03c164959b2 100644 --- a/src/parser/test/ParserTest.cpp +++ b/src/parser/test/ParserTest.cpp @@ -4,8 +4,8 @@ * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ -#include "base/Base.h" #include <gtest/gtest.h> +#include "base/Base.h" #include "parser/GQLParser.h" // TODO(dutor) Inspect the internal structures to check on the syntax and semantics @@ -884,7 +884,6 @@ TEST(Parser, UserOperation) { } } - TEST(Parser, UnreservedKeywords) { { GQLParser parser; @@ -922,7 +921,6 @@ TEST(Parser, UnreservedKeywords) { } } - TEST(Parser, Annotation) { { GQLParser parser; @@ -1136,13 +1134,13 @@ TEST(Parser, ConfigOperation) { } { GQLParser parser; - std::string query = "UPDATE VARIABLES load_config_interval_secs=120"; + std::string query = "UPDATE VARIABLES load_data_interval_secs=120"; auto result = parser.parse(query); ASSERT_TRUE(result.ok()) << result.status(); } { GQLParser parser; - std::string query = "GET VARIABLES load_config_interval_secs"; + std::string query = "GET VARIABLES load_data_interval_secs"; auto result = parser.parse(query); ASSERT_TRUE(result.ok()) << result.status(); }