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 bab0e050f1
commit a2384dc627
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
9 changed files with 85 additions and 15 deletions

View file

@ -330,9 +330,8 @@ pub(crate) mod test {
// ==== checking the task queue
let tasks_queue = fs::read_to_string(dump_path.join("tasks/queue.jsonl")).unwrap();
for (task, mut expected) in tasks_queue.lines().zip(create_test_tasks()) {
// TODO: uncomment this one once the we write the dump integration in the index-scheduler
// assert_eq!(serde_json::from_str::<TaskView>(task).unwrap(), expected.0);
for (task, expected) in tasks_queue.lines().zip(create_test_tasks()) {
assert_eq!(serde_json::from_str::<TaskDump>(task).unwrap(), expected.0);
if let Some(expected_update) = expected.1 {
let path = dump_path.join(format!("tasks/update_files/{}.jsonl", expected.0.uid));