Fix unittest failure (#714)

This commit is contained in:
groot 2019-12-05 06:08:15 -06:00 committed by Jin Hai
parent ebb4cedeb7
commit b6f22c7370
2 changed files with 4 additions and 4 deletions

View File

@ -371,8 +371,8 @@ TEST_F(MetaTest, INDEX_TEST) {
status = impl_->DropTableIndex(table_id); status = impl_->DropTableIndex(table_id);
ASSERT_TRUE(status.ok()); ASSERT_TRUE(status.ok());
status = impl_->DescribeTableIndex(table_id, index_out); status = impl_->DescribeTableIndex(table_id, index_out);
ASSERT_NE(index_out.metric_type_, index.metric_type_); ASSERT_EQ(index_out.metric_type_, index.metric_type_);
ASSERT_NE(index_out.nlist_, index.nlist_); ASSERT_EQ(index_out.nlist_, index.nlist_);
ASSERT_NE(index_out.engine_type_, index.engine_type_); ASSERT_NE(index_out.engine_type_, index.engine_type_);
status = impl_->UpdateTableFilesToIndex(table_id); status = impl_->UpdateTableFilesToIndex(table_id);

View File

@ -385,8 +385,8 @@ TEST_F(MySqlMetaTest, INDEX_TEST) {
status = impl_->DropTableIndex(table_id); status = impl_->DropTableIndex(table_id);
ASSERT_TRUE(status.ok()); ASSERT_TRUE(status.ok());
status = impl_->DescribeTableIndex(table_id, index_out); status = impl_->DescribeTableIndex(table_id, index_out);
ASSERT_NE(index_out.metric_type_, index.metric_type_); ASSERT_EQ(index_out.metric_type_, index.metric_type_);
ASSERT_NE(index_out.nlist_, index.nlist_); ASSERT_EQ(index_out.nlist_, index.nlist_);
ASSERT_NE(index_out.engine_type_, index.engine_type_); ASSERT_NE(index_out.engine_type_, index.engine_type_);
status = impl_->UpdateTableFilesToIndex(table_id); status = impl_->UpdateTableFilesToIndex(table_id);