test(db): fix for ARHIVE_DISK_CHECK

Former-commit-id: 1a82a410db91e2b6f9ddc38bafc491a1204c0dd1
pull/191/head
Xu Peng 2019-05-26 16:51:30 +08:00
parent ff3a89b997
commit 74e6ef4a9c
2 changed files with 4 additions and 4 deletions

View File

@ -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;
};

View File

@ -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;
}