rename table_schema_array (#2024)

Signed-off-by: HesterG <hestergong@gmail.com>
This commit is contained in:
HesterG 2020-04-22 00:01:01 -04:00 committed by GitHub
parent aca299166c
commit ba191b263a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<milvus::engine::meta::CollectionSchema> table_schema_array;
stat = db_->AllCollections(table_schema_array);
std::vector<milvus::engine::meta::CollectionSchema> 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");