From 0f2f6bed6f1c270d2133b9a73c70035ded204a62 Mon Sep 17 00:00:00 2001 From: starlord Date: Sun, 30 Jun 2019 17:05:46 +0800 Subject: [PATCH] avoid unitest hang Former-commit-id: 3913dca183379d1cb658fc905c6a11d2fdabddcb --- .../db/{MySQLMetaImpl_test.cpp => mysql_meta_test.cpp} | 5 +++++ 1 file changed, 5 insertions(+) rename cpp/unittest/db/{MySQLMetaImpl_test.cpp => mysql_meta_test.cpp} (98%) diff --git a/cpp/unittest/db/MySQLMetaImpl_test.cpp b/cpp/unittest/db/mysql_meta_test.cpp similarity index 98% rename from cpp/unittest/db/MySQLMetaImpl_test.cpp rename to cpp/unittest/db/mysql_meta_test.cpp index a370fd1cd9..436086acb3 100644 --- a/cpp/unittest/db/MySQLMetaImpl_test.cpp +++ b/cpp/unittest/db/mysql_meta_test.cpp @@ -502,6 +502,11 @@ TEST_F(MySQLTest, TABLE_FILES_TEST) { ASSERT_EQ(dated_files[table_file.date_].size(), to_index_files_cnt+raw_files_cnt+index_files_cnt); + status = impl.FilesToSearch(table_id, meta::DatesT(), dated_files); + ASSERT_TRUE(status.ok()); + ASSERT_EQ(dated_files[table_file.date_].size(), + to_index_files_cnt+raw_files_cnt+index_files_cnt); + status = impl.DropAll(); ASSERT_TRUE(status.ok()); }