Skip to content

Commit af5f408

Browse files
committed
Improve testing on document deletion with a filter
1 parent 9fce33b commit af5f408

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/documents.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -420,21 +420,17 @@ mod tests {
420420
setup_test_index(&client, &index).await?;
421421
index
422422
.set_filterable_attributes(["id"])
423-
.await
424-
.unwrap()
423+
.await?
425424
.wait_for_completion(&client, None, None)
426-
.await
427-
.unwrap();
425+
.await?;
426+
428427
let mut query = DocumentDeletionQuery::new(&index);
429428
query.with_filter("id = 1");
430-
431429
index
432430
.delete_documents_with(&query)
433-
.await
434-
.unwrap()
431+
.await?
435432
.wait_for_completion(&client, None, None)
436-
.await
437-
.unwrap();
433+
.await?;
438434
let document_result = index.get_document::<MyObject>("1").await;
439435

440436
match document_result {

0 commit comments

Comments
 (0)