meilisearch/meilisearch-rust

Use `wait_for_pending_update` method instead of `sleep`

curquiza opened this issue · 1 comments

In our test suite, we use the sleep method to wait for the task to be processed by MeiliSearch.
We should use wait_for_pending_update instead, which ensures the task is really completed before starting the next operation.

This has been implemented in #225