mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
fix the tests
This commit is contained in:
parent
2f748480a1
commit
9e85f050b2
17 changed files with 34 additions and 28 deletions
|
@ -217,7 +217,7 @@ impl KindWithContent {
|
|||
None // TODO: check correctness of this return value
|
||||
}
|
||||
KindWithContent::TaskDeletion { query, tasks } => Some(Details::TaskDeletion {
|
||||
matched_tasks: tasks.len() as usize,
|
||||
matched_tasks: tasks.len(),
|
||||
deleted_tasks: None,
|
||||
original_query: query.clone(),
|
||||
}),
|
||||
|
@ -250,7 +250,11 @@ impl From<&KindWithContent> for Option<Details> {
|
|||
}),
|
||||
KindWithContent::IndexSwap { .. } => None,
|
||||
KindWithContent::CancelTask { .. } => None,
|
||||
KindWithContent::TaskDeletion { .. } => todo!(),
|
||||
KindWithContent::TaskDeletion { query, tasks } => Some(Details::TaskDeletion {
|
||||
matched_tasks: tasks.len(),
|
||||
deleted_tasks: None,
|
||||
original_query: query.clone(),
|
||||
}),
|
||||
KindWithContent::DumpExport { dump_uid, .. } => Some(Details::Dump {
|
||||
dump_uid: dump_uid.clone(),
|
||||
}),
|
||||
|
@ -361,7 +365,7 @@ pub enum Details {
|
|||
deleted_documents: Option<u64>,
|
||||
},
|
||||
TaskDeletion {
|
||||
matched_tasks: usize,
|
||||
matched_tasks: u64,
|
||||
deleted_tasks: Option<usize>,
|
||||
original_query: String,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue