Skip to content
Snippets Groups Projects
Commit 90beb67d authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

fix test

parent 41e93237
Branches
Tags
No related merge requests found
......@@ -14,11 +14,11 @@ target_include_directories(${TARGET_NAME} PUBLIC ${ASAPO_CXX_COMMON_INCLUDE_DIR}
################################
add_test_cleanup(${TARGET_NAME})
add_integration_test(${TARGET_NAME} insertOK "OK 1" "OK 2")
#add_integration_test(${TARGET_NAME} insertFailsWhenNotConnected
# "Notconnected 3"
# "Notconnected 4")
#add_integration_test(${TARGET_NAME} insertFailsForDuplicateID
# "DuplicateID 6"
# "DuplicateID 5")
add_integration_test(${TARGET_NAME} insertFailsWhenNotConnected
"Notconnected 3"
"Notconnected 4")
add_integration_test(${TARGET_NAME} insertFailsForDuplicateID
"DuplicateID 6"
"DuplicateID 5")
......@@ -70,7 +70,7 @@ int main(int argc, char* argv[]) {
Assert(err, args.keyword);
if (args.keyword == "OK") { // check retrieve
if (args.keyword == "OK") { // check retrieve and stream delete
asapo::MessageMeta fi_db;
asapo::MongoDBClient db_new;
db_new.Connect("127.0.0.1", "data");
......@@ -96,7 +96,8 @@ int main(int argc, char* argv[]) {
db.DeleteStream("test");
err = db.GetStreamInfo("data_test", &info);
M_AssertTrue(err!=nullptr);
err = db.DeleteStream("test1");
M_AssertTrue(err==nullptr);
}
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment