Skip to content

Commit

Permalink
Add coll drops.
Browse files Browse the repository at this point in the history
  • Loading branch information
kishorenc committed Nov 26, 2021
1 parent 46231f3 commit c596548
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/collection_specific_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1550,6 +1550,8 @@ TEST_F(CollectionSpecificTest, UpdateOfTwoDocsWithSameIdWithinSameBatch) {

ASSERT_EQ(1, coll1->_get_index()->_get_numerical_index().at("points")->size());
ASSERT_EQ(1, coll1->_get_index()->_get_numerical_index().at("last_chance")->size());

collectionManager.drop_collection("coll1");
}

TEST_F(CollectionSpecificTest, UpsertOfTwoDocsWithSameIdWithinSameBatch) {
Expand Down Expand Up @@ -1600,6 +1602,8 @@ TEST_F(CollectionSpecificTest, UpsertOfTwoDocsWithSameIdWithinSameBatch) {
import_response = coll1->add_many(upserts, update_doc, UPDATE);
ASSERT_FALSE(import_response["success"].get<bool>());
ASSERT_EQ(0, import_response["num_imported"].get<int>());

collectionManager.drop_collection("coll1");
}

TEST_F(CollectionSpecificTest, UpdateUpsertOfDocWithMissingFields) {
Expand Down Expand Up @@ -1675,6 +1679,8 @@ TEST_F(CollectionSpecificTest, UpdateUpsertOfDocWithMissingFields) {

ASSERT_EQ(1, coll1->_get_index()->_get_numerical_index().at("points")->size());
ASSERT_EQ(1, coll1->_get_index()->_get_numerical_index().at("last_chance")->size());

collectionManager.drop_collection("coll1");
}

TEST_F(CollectionSpecificTest, FacetParallelizationVerification) {
Expand Down Expand Up @@ -1937,4 +1943,6 @@ TEST_F(CollectionSpecificTest, DroppedTokensShouldNotBeUsedForPrefixSearch) {
ASSERT_EQ(2, results["hits"].size());
ASSERT_EQ("1", results["hits"][0]["document"]["id"].get<std::string>());
ASSERT_EQ("0", results["hits"][1]["document"]["id"].get<std::string>());

collectionManager.drop_collection("coll1");
}

0 comments on commit c596548

Please sign in to comment.