add tests

This commit is contained in:
marin postma 2021-06-23 16:21:32 +02:00
parent 322d6b8cfe
commit b9b4feada8
No known key found for this signature in database
GPG key ID: 6088B7721C3E39F9
2 changed files with 41 additions and 8 deletions

View file

@ -54,11 +54,8 @@ async fn stats() {
assert_eq!(code, 202, "{}", response);
assert_eq!(response["updateId"], 0);
let (response, code) = server.stats().await;
assert_eq!(code, 200, "{}", response);
index.wait_update_id(0).await;
let response = index.wait_update_id(0).await;
println!("response: {}", response);
let (response, code) = server.stats().await;