get rid of the redundant info in document_addition_with_huge_int_primary_key

This commit is contained in:
JWSong 2024-06-25 23:54:27 +09:00
parent dcdc83946f
commit 6fb36ed30e

View File

@ -1053,22 +1053,9 @@ async fn document_addition_with_huge_int_primary_key() {
]);
let (response, code) = index.add_documents(documents, Some("primary")).await;
snapshot!(code, @"202 Accepted");
snapshot!(json_string!(response, { ".duration" => "[duration]", ".enqueuedAt" => "[date]", ".startedAt" => "[date]", ".finishedAt" => "[date]" }),
@r###"
{
"taskUid": 0,
"indexUid": "test",
"status": "enqueued",
"type": "documentAdditionOrUpdate",
"enqueuedAt": "[date]"
}
"###);
index.wait_task(0).await;
let (response, code) = index.get_task(0).await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(response, { ".duration" => "[duration]", ".enqueuedAt" => "[date]", ".startedAt" => "[date]", ".finishedAt" => "[date]" }),
let response = index.wait_task(response.uid()).await;
snapshot!(response,
@r###"
{
"uid": 0,
@ -1088,18 +1075,6 @@ async fn document_addition_with_huge_int_primary_key() {
}
"###);
let (response, code) = index.get().await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(response, { ".createdAt" => "[date]", ".updatedAt" => "[date]" }),
@r###"
{
"uid": "test",
"createdAt": "[date]",
"updatedAt": "[date]",
"primaryKey": "primary"
}
"###);
let (response, code) = index.get_document(14630868576586246730u64, None).await;
snapshot!(code, @"200 OK");
snapshot!(json_string!(response),