Skip to content

Commit 160a06f

Browse files
committed
Handle errors in test
1 parent 6b70f9d commit 160a06f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/progress.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ mod test {
262262
#[async_test]
263263
async fn test_wait_for_pending_updates_with_args() {
264264
let client = Client::new("http://localhost:7700", "masterKey");
265-
let movies = client.create_index("movies_wait_for_pending_args", None).await.unwrap();
265+
let movies = client.get_or_create("movies_wait_for_pending_args").await.unwrap();
266266
let progress = movies.add_documents(&[
267267
Document {
268268
id: 0,
@@ -286,7 +286,7 @@ mod test {
286286
#[async_test]
287287
async fn test_wait_for_pending_updates_time_out() {
288288
let client = Client::new("http://localhost:7700", "masterKey");
289-
let movies = client.create_index("movies_wait_for_pending_timeout", None).await.unwrap();
289+
let movies = client.get_or_create("movies_wait_for_pending_timeout").await.unwrap();
290290
let progress = movies.add_documents(&[
291291
Document {
292292
id: 0,

0 commit comments

Comments
 (0)