Skip to content

Commit

Permalink
test: change test names
Browse files Browse the repository at this point in the history
  • Loading branch information
oh2024 committed Apr 18, 2024
1 parent 18c0e2e commit 5debf64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ using ::openmldb::nameserver::NameServerImpl;
namespace openmldb {
namespace tablet {

class SqlClusterTest : public ::testing::Test {
class ProcedureDropTest : public ::testing::Test {
public:
SqlClusterTest() {}
ProcedureDropTest() {}

~SqlClusterTest() {}
~ProcedureDropTest() {}
};

std::shared_ptr<openmldb::sdk::SQLRouter> GetNewSQLRouter() {
Expand Down Expand Up @@ -132,7 +132,7 @@ void ShowTable(::openmldb::RpcClient<::openmldb::nameserver::NameServer_Stub>& n
ASSERT_EQ(response.table_info_size(), size);
}

TEST_F(SqlClusterTest, DropProcedureBeforeDropTable) {
TEST_F(ProcedureDropTest, DropProcedureBeforeDropTable) {
FLAGS_auto_failover = true;
FLAGS_zk_cluster = "127.0.0.1:6181";
FLAGS_zk_root_path = "/rtidb4" + ::openmldb::test::GenRand();
Expand Down Expand Up @@ -296,7 +296,7 @@ int main(int argc, char** argv) {
srand(time(NULL));
::openmldb::base::SetLogLevel(INFO);
::google::ParseCommandLineFlags(&argc, &argv, true);
::openmldb::test::InitRandomDiskFlags("drop_procedure_before_drop_table_test");
::openmldb::test::InitRandomDiskFlags("procedure_recover_test");
FLAGS_system_table_replica_num = 0;
return RUN_ALL_TESTS();
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ using ::openmldb::nameserver::NameServerImpl;
namespace openmldb {
namespace tablet {

class SqlClusterTest : public ::testing::Test {
class ProcedureRecoverTest : public ::testing::Test {
public:
SqlClusterTest() {}
ProcedureRecoverTest() {}

~SqlClusterTest() {}
~ProcedureRecoverTest() {}
};

std::shared_ptr<openmldb::sdk::SQLRouter> GetNewSQLRouter() {
Expand Down Expand Up @@ -132,7 +132,7 @@ void ShowTable(::openmldb::RpcClient<::openmldb::nameserver::NameServer_Stub>& n
ASSERT_EQ(response.table_info_size(), size);
}

TEST_F(SqlClusterTest, RecoverProcedure) {
TEST_F(ProcedureRecoverTest, RecoverProcedure) {
FLAGS_auto_failover = true;
FLAGS_zk_cluster = "127.0.0.1:6181";
FLAGS_zk_root_path = "/rtidb4" + ::openmldb::test::GenRand();
Expand Down

0 comments on commit 5debf64

Please sign in to comment.