feat(http): implement is_indexing for stats

This commit is contained in:
Alexey Shekhirin
2021-04-02 14:44:35 +03:00
parent 09d9a29176
commit 87412f63ef
9 changed files with 65 additions and 22 deletions

View File

@ -56,6 +56,11 @@ async fn stats() {
assert_eq!(code, 202);
assert_eq!(response["updateId"], 0);
let (response, code) = server.stats().await;
assert_eq!(code, 200);
assert_eq!(response["indexes"]["test"]["isIndexing"], true);
index.wait_update_id(0).await;
let (response, code) = server.stats().await;