mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-05 12:16:32 +00:00
Update tests
This commit is contained in:
@ -127,7 +127,12 @@ impl BatchQueue {
|
||||
status: Status,
|
||||
bitmap: &RoaringBitmap,
|
||||
) -> Result<()> {
|
||||
Ok(self.status.put(wtxn, &status, bitmap)?)
|
||||
if bitmap.is_empty() {
|
||||
self.status.delete(wtxn, &status)?;
|
||||
} else {
|
||||
self.status.put(wtxn, &status, bitmap)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub(crate) fn update_status(
|
||||
|
@ -50,7 +50,6 @@ doggo [2,3,]
|
||||
----------------------------------------------------------------------
|
||||
### Batches Status:
|
||||
succeeded [0,]
|
||||
failed []
|
||||
----------------------------------------------------------------------
|
||||
### Batches Kind:
|
||||
"upgradeDatabase" [0,]
|
||||
|
@ -20,7 +20,7 @@ async fn delete_task() {
|
||||
|
||||
// Delete tasks
|
||||
let (task, code) = server.delete_tasks(&format!("uids={task_uid}")).await;
|
||||
snapshot!(code, @"202 Accepted");
|
||||
snapshot!(code, @"200 OK");
|
||||
let value = server.wait_task(task).await.succeeded();
|
||||
snapshot!(value, @r#"
|
||||
{
|
||||
@ -95,7 +95,7 @@ async fn delete_tasks_time_bounds_inner(name: &str) {
|
||||
encode(&time1.format(&Rfc3339).unwrap()),
|
||||
))
|
||||
.await;
|
||||
snapshot!(code, @"202 Accepted");
|
||||
snapshot!(code, @"200 OK");
|
||||
let value = server.wait_task(task).await.succeeded();
|
||||
snapshot!(json_string!(value, {
|
||||
".details.originalFilter" => "[ignored]",
|
||||
|
Reference in New Issue
Block a user