mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
flush the dump-writer only once everything has been inserted
This commit is contained in:
parent
b87b071718
commit
8e469d8d1d
3 changed files with 32 additions and 7 deletions
|
@ -382,6 +382,7 @@ pub(crate) mod test {
|
|||
for document in &documents {
|
||||
index.push_document(document).unwrap();
|
||||
}
|
||||
index.flush().unwrap();
|
||||
index.settings(&settings).unwrap();
|
||||
|
||||
// ========== pushing the task queue
|
||||
|
@ -396,6 +397,7 @@ pub(crate) mod test {
|
|||
}
|
||||
}
|
||||
}
|
||||
task_queue.flush().unwrap();
|
||||
|
||||
// ========== pushing the api keys
|
||||
let api_keys = create_test_api_keys();
|
||||
|
@ -404,6 +406,7 @@ pub(crate) mod test {
|
|||
for key in &api_keys {
|
||||
keys.push_key(key).unwrap();
|
||||
}
|
||||
keys.flush().unwrap();
|
||||
|
||||
// create the dump
|
||||
let mut file = tempfile::tempfile().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue