fix(test): Reduce default index size in tests

This commit is contained in:
ManyTheFish
2022-06-07 13:56:55 +02:00
parent c3003065e8
commit a7bff35e49
2 changed files with 6 additions and 7 deletions

View File

@ -77,13 +77,12 @@ async fn get_and_paginate_indexes() {
const NB_INDEXES: usize = 50;
for i in 0..NB_INDEXES {
server.index(&format!("test_{i:02}")).create(None).await;
server
.index(&format!("test_{i:02}"))
.wait_task(i as u64)
.await;
}
server
.index(&format!("test_{NB_INDEXES}"))
.wait_task(NB_INDEXES as u64 - 1)
.await;
// basic
let (response, code) = server.list_indexes(None, None).await;
assert_eq!(code, 200);