Skip to content

Commit b4abb49

Browse files
committed
fix tests
1 parent 887b1f1 commit b4abb49

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/documents.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ mod tests {
575575
Hint: It might not be working because you're not up to date with the Meilisearch version that updated the get_documents_with method.".to_string();
576576
let displayed_error = "Meilisearch invalid_request: invalid_document_filter: Attribute `id` is not filterable. This index does not have configured filterable attributes.
577577
1:3 id = 1
578-
Hint: It might not be working because you're not up to date with the Meilisearch version that updated the get_documents_with method. https://docs.meilisearch.com/errors#invalid_document_filter";
578+
Hint: It might not be working because you're not up to date with the Meilisearch version that updated the get_documents_with method.. https://docs.meilisearch.com/errors#invalid_document_filter";
579579

580580
match &error {
581581
Error::Meilisearch(error) => {

src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ mod test {
340340
)
341341
.unwrap();
342342

343-
assert_eq!(error.to_string(), "Meilisearch internal: index_creation_failed: The cool error message. https://the best link ever");
343+
assert_eq!(error.to_string(), "Meilisearch internal: index_creation_failed: The cool error message.. https://the best link ever");
344344

345345
let error: MeilisearchCommunicationError = MeilisearchCommunicationError {
346346
status_code: 404,

src/search.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,9 @@ mod tests {
595595

596596
impl PartialEq<Map<String, Value>> for Document {
597597
fn eq(&self, rhs: &Map<String, Value>) -> bool {
598-
self.id == rhs["id"] && self.value == rhs["value"] && self.kind == rhs["kind"]
598+
self.id.to_string() == rhs["id"]
599+
&& self.value == rhs["value"]
600+
&& self.kind == rhs["kind"]
599601
}
600602
}
601603

0 commit comments

Comments
 (0)