From ba191b263ad25d01031fda74a1a8e1945b0e720c Mon Sep 17 00:00:00 2001 From: HesterG Date: Wed, 22 Apr 2020 00:01:01 -0400 Subject: [PATCH] rename table_schema_array (#2024) Signed-off-by: HesterG --- core/unittest/db/test_db_mysql.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/unittest/db/test_db_mysql.cpp b/core/unittest/db/test_db_mysql.cpp index 88faf12fd7..44a6669508 100644 --- a/core/unittest/db/test_db_mysql.cpp +++ b/core/unittest/db/test_db_mysql.cpp @@ -199,11 +199,11 @@ TEST_F(MySqlDBTest, ARHIVE_DISK_CHECK) { milvus::engine::meta::CollectionSchema collection_info = BuildCollectionSchema(); auto stat = db_->CreateCollection(collection_info); - std::vector table_schema_array; - stat = db_->AllCollections(table_schema_array); + std::vector collection_schema_array; + stat = db_->AllCollections(collection_schema_array); ASSERT_TRUE(stat.ok()); bool bfound = false; - for (auto& schema : table_schema_array) { + for (auto& schema : collection_schema_array) { if (schema.collection_id_ == COLLECTION_NAME) { bfound = true; break; @@ -213,11 +213,11 @@ TEST_F(MySqlDBTest, ARHIVE_DISK_CHECK) { fiu_init(0); FIU_ENABLE_FIU("MySQLMetaImpl.AllCollection.null_connection"); - stat = db_->AllCollections(table_schema_array); + stat = db_->AllCollections(collection_schema_array); ASSERT_FALSE(stat.ok()); FIU_ENABLE_FIU("MySQLMetaImpl.AllCollection.throw_exception"); - stat = db_->AllCollections(table_schema_array); + stat = db_->AllCollections(collection_schema_array); ASSERT_FALSE(stat.ok()); fiu_disable("MySQLMetaImpl.AllCollection.null_connection"); fiu_disable("MySQLMetaImpl.AllCollection.throw_exception");