mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
Update the dump test to check for the dumpUid dumpCreation task details
This commit is contained in:
parent
8443554b1f
commit
7093bae131
@ -487,10 +487,8 @@ impl IndexScheduler {
|
|||||||
assert_ne!(status, Status::Succeeded);
|
assert_ne!(status, Status::Succeeded);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Details::Dump { dump_uid: d1 } => {
|
Details::Dump { dump_uid: _ } => {
|
||||||
assert!(
|
assert_eq!(kind.as_kind(), Kind::DumpCreation);
|
||||||
matches!(&kind, KindWithContent::DumpCreation { dump_uid: d2, keys: _, instance_uid: _ } if &d1 == d2 )
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -983,7 +983,7 @@ async fn test_summarized_dump_creation() {
|
|||||||
server.wait_task(0).await;
|
server.wait_task(0).await;
|
||||||
let (task, _) = server.get_task(0).await;
|
let (task, _) = server.get_task(0).await;
|
||||||
assert_json_snapshot!(task,
|
assert_json_snapshot!(task,
|
||||||
{ ".duration" => "[duration]", ".enqueuedAt" => "[date]", ".startedAt" => "[date]", ".finishedAt" => "[date]" },
|
{ ".details.dumpUid" => "[dumpUid]", ".duration" => "[duration]", ".enqueuedAt" => "[date]", ".startedAt" => "[date]", ".finishedAt" => "[date]" },
|
||||||
@r###"
|
@r###"
|
||||||
{
|
{
|
||||||
"uid": 0,
|
"uid": 0,
|
||||||
@ -991,6 +991,9 @@ async fn test_summarized_dump_creation() {
|
|||||||
"status": "succeeded",
|
"status": "succeeded",
|
||||||
"type": "dumpCreation",
|
"type": "dumpCreation",
|
||||||
"canceledBy": null,
|
"canceledBy": null,
|
||||||
|
"details": {
|
||||||
|
"dumpUid": "[dumpUid]"
|
||||||
|
},
|
||||||
"error": null,
|
"error": null,
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
"enqueuedAt": "[date]",
|
"enqueuedAt": "[date]",
|
||||||
|
Loading…
Reference in New Issue
Block a user