mirror of https://github.com/milvus-io/milvus.git
test(db): fix for ARHIVE_DISK_CHECK
Former-commit-id: 1a82a410db91e2b6f9ddc38bafc491a1204c0dd1pull/191/head
parent
ff3a89b997
commit
74e6ef4a9c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue