test: reopen topicTest
This commit is contained in:
parent
2b7ec5743c
commit
81016a98ce
|
@ -1,11 +1,11 @@
|
|||
aux_source_directory(. TOPIC_SRC)
|
||||
add_executable(mnode_test_topic ${TOPIC_SRC})
|
||||
aux_source_directory(. MNODE_TOPIC_TEST_SRC)
|
||||
add_executable(topicTest ${MNODE_TOPIC_TEST_SRC})
|
||||
target_link_libraries(
|
||||
mnode_test_topic
|
||||
topicTest
|
||||
PUBLIC sut
|
||||
)
|
||||
|
||||
add_test(
|
||||
NAME mnode_test_topic
|
||||
COMMAND mnode_test_topic
|
||||
NAME topicTest
|
||||
COMMAND topicTest
|
||||
)
|
||||
|
|
|
@ -101,7 +101,7 @@ TEST_F(MndTestTopic, 01_Create_Topic) {
|
|||
ASSERT_EQ(pRsp->code, 0);
|
||||
}
|
||||
|
||||
{ test.SendShowMetaReq(TSDB_MGMT_TABLE_TOPICS, ""); }
|
||||
{ test.SendShowReq(TSDB_MGMT_TABLE_TOPICS, ""); }
|
||||
|
||||
{
|
||||
int32_t contLen = 0;
|
||||
|
@ -128,7 +128,7 @@ TEST_F(MndTestTopic, 01_Create_Topic) {
|
|||
}
|
||||
|
||||
{
|
||||
test.SendShowMetaReq(TSDB_MGMT_TABLE_TOPICS, dbname);
|
||||
test.SendShowReq(TSDB_MGMT_TABLE_TOPICS, dbname);
|
||||
CHECK_META("show topics", 3);
|
||||
|
||||
CHECK_SCHEMA(0, TSDB_DATA_TYPE_BINARY, TSDB_TABLE_NAME_LEN + VARSTR_HEADER_SIZE, "name");
|
||||
|
@ -145,7 +145,7 @@ TEST_F(MndTestTopic, 01_Create_Topic) {
|
|||
// restart
|
||||
test.Restart();
|
||||
|
||||
test.SendShowMetaReq(TSDB_MGMT_TABLE_TOPICS, dbname);
|
||||
test.SendShowReq(TSDB_MGMT_TABLE_TOPICS, dbname);
|
||||
test.SendShowRetrieveReq();
|
||||
EXPECT_EQ(test.GetShowRows(), 1);
|
||||
|
||||
|
@ -169,7 +169,7 @@ TEST_F(MndTestTopic, 01_Create_Topic) {
|
|||
ASSERT_NE(pRsp, nullptr);
|
||||
ASSERT_EQ(pRsp->code, TSDB_CODE_MND_TOPIC_NOT_EXIST);
|
||||
|
||||
test.SendShowMetaReq(TSDB_MGMT_TABLE_TOPICS, dbname);
|
||||
test.SendShowReq(TSDB_MGMT_TABLE_TOPICS, dbname);
|
||||
test.SendShowRetrieveReq();
|
||||
EXPECT_EQ(test.GetShowRows(), 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue