Update meilisearch/tests/documents/errors.rs

Co-authored-by: Louis Dureuil <louis@meilisearch.com>
This commit is contained in:
Tamo 2023-05-04 14:51:17 +02:00 committed by GitHub
parent 11e394dba1
commit a3da680ce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,8 @@ async fn get_all_documents_bad_filter() {
let index = server.index("test"); let index = server.index("test");
// Since the filter can't be parsed automatically by deserr, we have the wrong error message // Since the filter can't be parsed automatically by deserr, we have the wrong error message
// if the index does not exists // if the index does not exist: we could expect to get an error message about the invalid filter before
// the existence of the index is checked, but it is not the case.
let (response, code) = index.get_all_documents_raw("?filter").await; let (response, code) = index.get_all_documents_raw("?filter").await;
snapshot!(code, @"404 Not Found"); snapshot!(code, @"404 Not Found");
snapshot!(json_string!(response), @r###" snapshot!(json_string!(response), @r###"