From bb75cb93d89628272ebe5b85d9c1a1cf98a94347 Mon Sep 17 00:00:00 2001 From: Xu Peng Date: Sun, 26 May 2019 11:14:17 +0800 Subject: [PATCH] test(db): check size Former-commit-id: 07d052fdd6713e728595aff1c21a5b6cde62085c --- cpp/unittest/db/db_tests.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/unittest/db/db_tests.cpp b/cpp/unittest/db/db_tests.cpp index 5a6ea703aa..90d35ee8f9 100644 --- a/cpp/unittest/db/db_tests.cpp +++ b/cpp/unittest/db/db_tests.cpp @@ -62,6 +62,7 @@ TEST_F(DBTest2, ARHIVE_DISK_CHECK) { static const std::string group_name = "test_group"; static const int group_dim = 256; + long size; engine::meta::GroupSchema group_info; group_info.dimension = group_dim; @@ -77,6 +78,7 @@ TEST_F(DBTest2, ARHIVE_DISK_CHECK) { engine::IDNumbers vector_ids; engine::IDNumbers target_ids; + db_->size(size); int d = 256; int nb = 30; float *xb = new float[d * nb]; @@ -94,7 +96,6 @@ TEST_F(DBTest2, ARHIVE_DISK_CHECK) { std::this_thread::sleep_for(std::chrono::seconds(1)); - long size; db_->size(size); /* LOG(DEBUG) << "size=" << size; */ ASSERT_TRUE(size < 2UL*1024*1024*1024);