Skip to content

Commit acb62a2

Browse files
bors[bot]sanders41curquiza
authored
Merge #146
146: Adding logging code to test_wait_for_pending_updates_time_out test r=curquiza a=sanders41 Relates to #144 `@curquiza` and `@Mubelotix` I'm not sure if this will catch the information needed to solve the random failure issue or not but it's currently my best idea at something to try. If either of you have a different idea feel free to close this in favor of another option. Co-authored-by: Paul Sanders <[email protected]> Co-authored-by: Clémentine Urquizar <[email protected]>
2 parents e810be6 + 07ca9c3 commit acb62a2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/progress.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,20 @@ mod test {
324324
value: "Harry Potter and the Sorcerer's Stone".to_string(),
325325
},
326326
], None).await.unwrap();
327-
let status = progress.wait_for_pending_update(
327+
328+
let status = progress.wait_for_pending_update(
328329
Some(Duration::from_millis(1)), Some(Duration::from_nanos(1))
329330
).await;
330331

332+
/*
333+
* TODO: This if let is here to try to log more information to resolve https://github.com/meilisearch/meilisearch-rust/issues/144.
334+
* Once this issue is resolved this should be removed.
335+
*/
336+
if let Some(Err(err)) = &status {
337+
println!("{:?}", err);
338+
client.delete_index("movies_wait_for_pending_timeout").await.unwrap();
339+
};
340+
331341
client.delete_index("movies_wait_for_pending_timeout").await.unwrap();
332342
assert_eq!(status.is_none(), true);
333343
}

0 commit comments

Comments
 (0)