提交 74e6ef4a 编写于 作者: X Xu Peng

test(db): fix for ARHIVE_DISK_CHECK


Former-commit-id: 1a82a410db91e2b6f9ddc38bafc491a1204c0dd1
上级 ff3a89b9
......@@ -81,7 +81,7 @@ TEST_F(DBTest2, ARHIVE_DISK_CHECK) {
db_->size(size);
int d = 256;
int nb = 30;
int nb = 20;
float *xb = new float[d * nb];
for(int i = 0; i < nb; i++) {
for(int j = 0; j < d; j++) xb[d * i + j] = drand48();
......@@ -98,8 +98,8 @@ TEST_F(DBTest2, ARHIVE_DISK_CHECK) {
std::this_thread::sleep_for(std::chrono::seconds(1));
db_->size(size);
/* LOG(DEBUG) << "size=" << size; */
ASSERT_TRUE(size < 2 * engine::meta::G);
LOG(DEBUG) << "size=" << size;
ASSERT_TRUE(size < 1 * engine::meta::G);
delete [] xb;
};
......
......@@ -49,7 +49,7 @@ void DBTest::TearDown() {
engine::Options DBTest2::GetOptions() {
auto options = engine::OptionsFactory::Build();
options.meta.path = "/tmp/vecwise_test";
options.meta.archive_conf = engine::ArchiveConf("delete", "disk:2");
options.meta.archive_conf = engine::ArchiveConf("delete", "disk:1");
return options;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册