tests: Use Server::wait_task() instead of Index::wait_task() in index::

The code is mostly duplicated. Server::wait_task() has better handling for errors and more retries.

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
This commit is contained in:
Martin Tzvetanov Grigorov 2025-06-22 14:29:33 +03:00
parent fc6cc80705
commit ca112a8b95
No known key found for this signature in database
GPG key ID: 3194FD8C1AE300EF
5 changed files with 27 additions and 24 deletions

View file

@ -12,7 +12,7 @@ async fn create_and_get_index() {
assert_eq!(code, 202);
index.wait_task(response.uid()).await.succeeded();
server.wait_task(response.uid()).await.succeeded();
let (response, code) = index.get().await;