reduce the size of an integration test

This commit is contained in:
Tamo 2024-03-14 17:42:33 +01:00
parent b8cda6c300
commit ad9192fbbf

View File

@ -850,6 +850,7 @@ async fn test_degraded_score_details() {
.search( .search(
json!({ json!({
"q": "b", "q": "b",
"attributesToRetrieve": ["doggos.name", "cattos"],
"showRankingScoreDetails": true, "showRankingScoreDetails": true,
}), }),
|response, code| { |response, code| {
@ -857,81 +858,46 @@ async fn test_degraded_score_details() {
meili_snap::snapshot!(meili_snap::json_string!(response["hits"]), @r###" meili_snap::snapshot!(meili_snap::json_string!(response["hits"]), @r###"
[ [
{ {
"id": 852,
"father": "jean",
"mother": "michelle",
"doggos": [ "doggos": [
{ {
"name": "bobby", "name": "bobby"
"age": 2
}, },
{ {
"name": "buddy", "name": "buddy"
"age": 4
} }
], ],
"cattos": "pésti", "cattos": "pésti",
"_vectors": {
"manual": [
1,
2,
3
]
},
"_rankingScoreDetails": { "_rankingScoreDetails": {
"skipped": 0.0 "skipped": 0.0
} }
}, },
{ {
"id": 654,
"father": "pierre",
"mother": "sabine",
"doggos": [ "doggos": [
{ {
"name": "gros bill", "name": "gros bill"
"age": 8
} }
], ],
"cattos": [ "cattos": [
"simba", "simba",
"pestiféré" "pestiféré"
], ],
"_vectors": {
"manual": [
1,
2,
54
]
},
"_rankingScoreDetails": { "_rankingScoreDetails": {
"skipped": 0.0 "skipped": 0.0
} }
}, },
{ {
"id": 951,
"father": "jean-baptiste",
"mother": "sophie",
"doggos": [ "doggos": [
{ {
"name": "turbo", "name": "turbo"
"age": 5
}, },
{ {
"name": "fast", "name": "fast"
"age": 6
} }
], ],
"cattos": [ "cattos": [
"moumoute", "moumoute",
"gomez" "gomez"
], ],
"_vectors": {
"manual": [
10,
23,
32
]
},
"_rankingScoreDetails": { "_rankingScoreDetails": {
"skipped": 0.0 "skipped": 0.0
} }