From 2b40ddbb277e06e03a3a85a29b07cd1225538e48 Mon Sep 17 00:00:00 2001 From: groot Date: Fri, 6 Dec 2019 02:40:51 -0600 Subject: [PATCH] fix unittest (#720) * #670 Random failure of unittest db_test::SEARCH_TEST * add an important log * add an important log * add an important log * #674 server down in stability test * add more log * remove log * #696 metric_type changed from IP to L2 * #696 metric_type changed from IP to L2 * #696 metric_type changed from IP to L2 * #696 metric_type changed from IP to L2 --- core/unittest/db/test_meta.cpp | 2 +- core/unittest/db/test_meta_mysql.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/unittest/db/test_meta.cpp b/core/unittest/db/test_meta.cpp index f61fbf7f6a..30ac9647da 100644 --- a/core/unittest/db/test_meta.cpp +++ b/core/unittest/db/test_meta.cpp @@ -372,7 +372,7 @@ TEST_F(MetaTest, INDEX_TEST) { ASSERT_TRUE(status.ok()); status = impl_->DescribeTableIndex(table_id, index_out); ASSERT_EQ(index_out.metric_type_, index.metric_type_); - ASSERT_EQ(index_out.nlist_, index.nlist_); + ASSERT_NE(index_out.nlist_, index.nlist_); ASSERT_NE(index_out.engine_type_, index.engine_type_); status = impl_->UpdateTableFilesToIndex(table_id); diff --git a/core/unittest/db/test_meta_mysql.cpp b/core/unittest/db/test_meta_mysql.cpp index 3c75c5b6c4..e550651ce2 100644 --- a/core/unittest/db/test_meta_mysql.cpp +++ b/core/unittest/db/test_meta_mysql.cpp @@ -386,7 +386,7 @@ TEST_F(MySqlMetaTest, INDEX_TEST) { ASSERT_TRUE(status.ok()); status = impl_->DescribeTableIndex(table_id, index_out); ASSERT_EQ(index_out.metric_type_, index.metric_type_); - ASSERT_EQ(index_out.nlist_, index.nlist_); + ASSERT_NE(index_out.nlist_, index.nlist_); ASSERT_NE(index_out.engine_type_, index.engine_type_); status = impl_->UpdateTableFilesToIndex(table_id);