fix all the errors code and settings issues when importing a dump v2

This commit is contained in:
Tamo 2022-10-17 12:47:48 +02:00 committed by Clément Renault
parent 3872a1b8d1
commit a9eeb070b8
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
9 changed files with 85 additions and 15 deletions

View file

@ -414,7 +414,7 @@ pub(crate) mod test {
// tasks
let tasks = dump.tasks().collect::<Result<Vec<_>>>().unwrap();
let (tasks, update_files): (Vec<_>, Vec<_>) = tasks.into_iter().unzip();
meili_snap::snapshot_hash!(meili_snap::json_string!(tasks), @"84d5b8eb31735d643483fcee28080edf");
meili_snap::snapshot_hash!(meili_snap::json_string!(tasks), @"8c6cd41457c0b7e4c6727c9c85b7abac");
assert_eq!(update_files.len(), 22);
assert!(update_files[0].is_none()); // the dump creation
assert!(update_files[1].is_some()); // the enqueued document addition