[skip e2e]Add compact before verification (#20618)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/20572/head
zhuwenxing 2022-11-15 19:23:08 +08:00 committed by GitHub
parent 51093dfccd
commit aa04787f32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,10 @@ class TestAllCollection(TestcaseBase):
collection_w = self.init_collection_wrap(name=name, active_trace=True)
tt = time.time() - t0
assert collection_w.name == name
# compact collection before getting num_entities
collection_w.compact()
collection_w.wait_for_compaction_completed()
entities = collection_w.num_entities
log.info(f"assert create collection: {tt}, init_entities: {entities}")