Update the new test case to use the new signature of index_with_documents_user_provided()

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
This commit is contained in:
Martin Tzvetanov Grigorov 2025-06-03 15:29:45 +03:00
parent 7c6162f0bf
commit 733175359a
No known key found for this signature in database
GPG Key ID: 3194FD8C1AE300EF

View File

@ -538,8 +538,8 @@ async fn query_combination() {
// see <https://github.com/meilisearch/meilisearch/issues/5526> // see <https://github.com/meilisearch/meilisearch/issues/5526>
#[actix_rt::test] #[actix_rt::test]
async fn distinct_is_applied() { async fn distinct_is_applied() {
let server = Server::new().await; let server = Server::new_shared();
let index = index_with_documents_user_provided(&server, &TEST_DISTINCT_DOCUMENTS).await; let index = index_with_documents_user_provided(server, &TEST_DISTINCT_DOCUMENTS).await;
let (response, code) = index.update_settings(json!({ "distinctAttribute": "distinct" } )).await; let (response, code) = index.update_settings(json!({ "distinctAttribute": "distinct" } )).await;
assert_eq!(202, code, "{:?}", response); assert_eq!(202, code, "{:?}", response);