mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 14:54:27 +01:00
fix all the flaky snapshots
This commit is contained in:
parent
7be17b7e4c
commit
606e108420
@ -213,11 +213,11 @@ async fn clear_documents() {
|
|||||||
|
|
||||||
// Make sure the arroy DB has been cleared
|
// Make sure the arroy DB has been cleared
|
||||||
let (documents, _code) = index.search_post(json!({ "vector": [1, 1, 1] })).await;
|
let (documents, _code) = index.search_post(json!({ "vector": [1, 1, 1] })).await;
|
||||||
snapshot!(json_string!(documents), @r###"
|
snapshot!(documents, @r###"
|
||||||
{
|
{
|
||||||
"hits": [],
|
"hits": [],
|
||||||
"query": "",
|
"query": "",
|
||||||
"processingTimeMs": 0,
|
"processingTimeMs": "[duration]",
|
||||||
"limit": 20,
|
"limit": 20,
|
||||||
"offset": 0,
|
"offset": 0,
|
||||||
"estimatedTotalHits": 0,
|
"estimatedTotalHits": 0,
|
||||||
@ -272,7 +272,7 @@ async fn add_remove_one_vector_4588() {
|
|||||||
snapshot!(task, name: "document-deleted");
|
snapshot!(task, name: "document-deleted");
|
||||||
|
|
||||||
let (documents, _code) = index.search_post(json!({"vector": [1, 1, 1] })).await;
|
let (documents, _code) = index.search_post(json!({"vector": [1, 1, 1] })).await;
|
||||||
snapshot!(json_string!(documents), @r###"
|
snapshot!(documents, @r###"
|
||||||
{
|
{
|
||||||
"hits": [
|
"hits": [
|
||||||
{
|
{
|
||||||
@ -281,7 +281,7 @@ async fn add_remove_one_vector_4588() {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"query": "",
|
"query": "",
|
||||||
"processingTimeMs": 1,
|
"processingTimeMs": "[duration]",
|
||||||
"limit": 20,
|
"limit": 20,
|
||||||
"offset": 0,
|
"offset": 0,
|
||||||
"estimatedTotalHits": 1,
|
"estimatedTotalHits": 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user