Skip to content

Commit b1db103

Browse files
committed
Increase test tolerance against previous failures
The issue : This test failed once for an unknown reason. It did not execute to the end. Its index was not removed. It failed all other times due to the "already existing" index.
1 parent 2cada43 commit b1db103

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/indexes.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -720,11 +720,10 @@ mod tests {
720720
let client = Client::new("http://localhost:7700", "masterKey");
721721
let uid = "test_get_all_updates_no_docs";
722722

723-
let index = client.create_index(uid, None).await.unwrap();
723+
let index = client.get_or_create(uid).await.unwrap();
724724
let status = index.get_all_updates().await.unwrap();
725+
client.delete_index(uid).await.unwrap();
725726

726727
assert_eq!(status.len(), 0);
727-
728-
client.delete_index(uid).await.unwrap();
729728
}
730729
}

0 commit comments

Comments
 (0)