Skip to content

Commit

Permalink
Fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiee committed Dec 16, 2021
1 parent 8ead2ce commit 98364ab
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/parser/test/ParserTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3133,6 +3133,12 @@ TEST_F(ParserTest, SessionTest) {
ASSERT_TRUE(result.ok()) << result.status();
ASSERT_EQ(result.value()->toString(), "SHOW SESSIONS");
}
{
std::string query = "SHOW LOCAL SESSIONS";
auto result = parse(query);
ASSERT_TRUE(result.ok()) << result.status();
ASSERT_EQ(result.value()->toString(), "SHOW LOCAL SESSIONS");
}
{
std::string query = "SHOW SESSION 123";
auto result = parse(query);
Expand Down Expand Up @@ -3181,10 +3187,10 @@ TEST_F(ParserTest, ShowAndKillQueryTest) {
ASSERT_EQ(result.value()->toString(), "SHOW QUERIES");
}
{
std::string query = "SHOW ALL QUERIES";
std::string query = "SHOW LOCAL QUERIES";
auto result = parse(query);
ASSERT_TRUE(result.ok()) << result.status();
ASSERT_EQ(result.value()->toString(), "SHOW ALL QUERIES");
ASSERT_EQ(result.value()->toString(), "SHOW LOCAL QUERIES");
}
{
std::string query = "KILL QUERY (plan=123)";
Expand Down

0 comments on commit 98364ab

Please sign in to comment.