mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Fix more snapshots
This commit is contained in:
parent
70ed6ba798
commit
bd172bf68a
135 changed files with 577 additions and 600 deletions
|
@ -307,7 +307,8 @@ async fn test_summarized_document_addition_or_update() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "batched all enqueued tasks"
|
||||
}
|
||||
"###);
|
||||
|
||||
|
@ -348,7 +349,8 @@ async fn test_summarized_document_addition_or_update() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "batched all enqueued tasks"
|
||||
}
|
||||
"###);
|
||||
}
|
||||
|
@ -392,7 +394,8 @@ async fn test_summarized_delete_documents_by_batch() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "batched all enqueued tasks"
|
||||
}
|
||||
"###);
|
||||
|
||||
|
@ -432,7 +435,8 @@ async fn test_summarized_delete_documents_by_batch() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "batched all enqueued tasks"
|
||||
}
|
||||
"###);
|
||||
}
|
||||
|
@ -479,7 +483,8 @@ async fn test_summarized_delete_documents_by_filter() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "batched all enqueued tasks"
|
||||
}
|
||||
"###);
|
||||
|
||||
|
@ -521,7 +526,8 @@ async fn test_summarized_delete_documents_by_filter() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "batched all enqueued tasks"
|
||||
}
|
||||
"###);
|
||||
|
||||
|
@ -539,7 +545,7 @@ async fn test_summarized_delete_documents_by_filter() {
|
|||
".stats.progressTrace" => "[progressTrace]",
|
||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||
},
|
||||
@r#"
|
||||
@r###"
|
||||
{
|
||||
"uid": 4,
|
||||
"progress": null,
|
||||
|
@ -563,9 +569,10 @@ async fn test_summarized_delete_documents_by_filter() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "batched all enqueued tasks"
|
||||
}
|
||||
"#);
|
||||
"###);
|
||||
}
|
||||
|
||||
#[actix_web::test]
|
||||
|
@ -585,7 +592,7 @@ async fn test_summarized_delete_document_by_id() {
|
|||
".stats.progressTrace" => "[progressTrace]",
|
||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||
},
|
||||
@r#"
|
||||
@r###"
|
||||
{
|
||||
"uid": "[uid]",
|
||||
"progress": null,
|
||||
|
@ -608,9 +615,10 @@ async fn test_summarized_delete_document_by_id() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "batched all enqueued tasks"
|
||||
}
|
||||
"#);
|
||||
"###);
|
||||
|
||||
index.create(None).await;
|
||||
let (task, _status_code) = index.delete_document(42).await;
|
||||
|
@ -625,7 +633,7 @@ async fn test_summarized_delete_document_by_id() {
|
|||
".stats.progressTrace" => "[progressTrace]",
|
||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||
},
|
||||
@r#"
|
||||
@r###"
|
||||
{
|
||||
"uid": 2,
|
||||
"progress": null,
|
||||
|
@ -648,9 +656,10 @@ async fn test_summarized_delete_document_by_id() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "batched all enqueued tasks"
|
||||
}
|
||||
"#);
|
||||
"###);
|
||||
}
|
||||
|
||||
#[actix_web::test]
|
||||
|
@ -713,7 +722,8 @@ async fn test_summarized_settings_update() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "batched all enqueued tasks"
|
||||
}
|
||||
"###);
|
||||
}
|
||||
|
@ -754,7 +764,8 @@ async fn test_summarized_index_creation() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "task with id 0 of type `indexCreation` cannot be batched"
|
||||
}
|
||||
"###);
|
||||
|
||||
|
@ -792,7 +803,8 @@ async fn test_summarized_index_creation() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "task with id 1 of type `indexCreation` cannot be batched"
|
||||
}
|
||||
"###);
|
||||
}
|
||||
|
@ -943,7 +955,8 @@ async fn test_summarized_index_update() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "task with id 0 of type `indexUpdate` cannot be batched"
|
||||
}
|
||||
"###);
|
||||
|
||||
|
@ -981,7 +994,8 @@ async fn test_summarized_index_update() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "task with id 1 of type `indexUpdate` cannot be batched"
|
||||
}
|
||||
"###);
|
||||
|
||||
|
@ -1000,7 +1014,7 @@ async fn test_summarized_index_update() {
|
|||
".stats.progressTrace" => "[progressTrace]",
|
||||
".stats.writeChannelCongestion" => "[writeChannelCongestion]"
|
||||
},
|
||||
@r#"
|
||||
@r###"
|
||||
{
|
||||
"uid": 3,
|
||||
"progress": null,
|
||||
|
@ -1020,9 +1034,10 @@ async fn test_summarized_index_update() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "task with id 3 of type `indexUpdate` cannot be batched"
|
||||
}
|
||||
"#);
|
||||
"###);
|
||||
|
||||
let (task, _status_code) = index.update(Some("bones")).await;
|
||||
index.wait_task(task.uid()).await.succeeded();
|
||||
|
@ -1058,7 +1073,8 @@ async fn test_summarized_index_update() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "task with id 4 of type `indexUpdate` cannot be batched"
|
||||
}
|
||||
"###);
|
||||
}
|
||||
|
@ -1109,7 +1125,8 @@ async fn test_summarized_index_swap() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "task with id 0 of type `indexSwap` cannot be batched"
|
||||
}
|
||||
"###);
|
||||
|
||||
|
@ -1151,7 +1168,8 @@ async fn test_summarized_index_swap() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "task with id 1 of type `indexCreation` cannot be batched"
|
||||
}
|
||||
"###);
|
||||
}
|
||||
|
@ -1197,7 +1215,8 @@ async fn test_summarized_batch_cancelation() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "task with id 1 of type `taskCancelation` cannot be batched"
|
||||
}
|
||||
"###);
|
||||
}
|
||||
|
@ -1243,7 +1262,8 @@ async fn test_summarized_batch_deletion() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "task with id 1 of type `taskDeletion` cannot be batched"
|
||||
}
|
||||
"###);
|
||||
}
|
||||
|
@ -1284,7 +1304,8 @@ async fn test_summarized_dump_creation() {
|
|||
},
|
||||
"duration": "[duration]",
|
||||
"startedAt": "[date]",
|
||||
"finishedAt": "[date]"
|
||||
"finishedAt": "[date]",
|
||||
"batcherStoppedBecause": "task with id 0 of type `dumpCreation` cannot be batched"
|
||||
}
|
||||
"###);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue